1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Help - Redirect http to https

Discussion in 'Plesk for Linux - 8.x and Older' started by ikarumbah, Apr 16, 2006.

  1. ikarumbah

    ikarumbah Guest

    0
     
    I have created a vhost.conf file under /home/httpd/vhosts/<domain-name>/conf with the following line:
    Code:
    Redirect /forum [url]https://[/url]<domain-name>/forum
    I ran the following command from root:
    Code:
    /usr/local/psa/admin/sbin/websrvmng --reconfigure-vost --vhost-name=<domain-name>
    I also restarted httpd service too and the redirect does not work.

    I also added vhost_ssl.conf as well with the same line of code with no luck.

    I know I'm missing something simple here. Is this a job for the Rewrite Engine? If so, can someone give me a working example or direct me to a web site with more information about this?

    Thanks,

    Lee
     
  2. Highland

    Highland Guest

    0
     
    I wouldn't even bother with htaccess. If you're using httpdocs and httpsdocs then just make your forums in the httpsdocs and then make /forum in httpdocs and make the following index.php file
    PHP:
    <?php
    header
    ("HTTP/1.1 301 Moved Permanently");
    header("Location:https://yourdomain.com/forum");
    exit;
    ?>
    Quick, easy and doesn't require any recoding.
     
Loading...