How do auto run a script ...

Discussion in 'Linux VPS/Dedicated - General' started by, Jun 23, 2006.

  1. 3x WHM VPS + Growing


    I have a sub-domain, and under this I have a script in the cgi-bin called

    To run this script in my browser I currently go
    I have the SSL cert installed already.

    I want to just go in my browser and have it automatically:

    1. Redirect to https
    2. Run the script in cgi-bin without me having to fully qualify the path to the script

    Anyone know how I can set this.


    Sydney, Australia
  2. KH-Paul

    KH-Paul CTO Staff Member

    Depending on the server configuration you may try to either:

    - use .htaccess to redirect requests:
    RedirectMatch permanent ^/$

    - create index.html file in the domain's home directory:

    <meta content="0; url="" http-equiv="refresh">

Share This Page