http redirect to https

Discussion in 'Feature Requests' started by derfy, Jun 23, 2006.

  1. derfy

    derfy New Member

    I like to run some websites only on https.
    When a user request the site on http I want to have a redirect to the same site on https. It is simple with a "Redirect / https://site.tld" statement in the httpd.conf vhost file for that site.
    In the user interface a extra item after the "SSL:" for "https Only" ?

    Thanks in advance
    Fred Krom
     
  2. falko

    falko Super Moderator

  3. derfy

    derfy New Member

    Hi Falco,

    Thanks, filled the text in the ispconfig "Apache Directives" field and it work ok. There is always more than one way to get it working!

    RewriteEngine on
    RewriteCond %{SERVER_PORT} =80
    RewriteRule ^(.*) https://%{SERVER_NAME}%{REQUEST_URI}

    Fred
     

Share This Page