HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Feature Requests (http://www.howtoforge.com/forums/forumdisplay.php?f=17)
-   -   http redirect to https (http://www.howtoforge.com/forums/showthread.php?t=5117)

derfy 23rd June 2006 14:36

http redirect to https
 
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

falko 24th June 2006 14:55

Have a look here: http://www-1.ibm.com/support/docview...id=swg21114864

You can put the rewrite rules in the Apache Directives field of the web site or in an .htaccess file.

derfy 24th June 2006 21:04

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


All times are GMT +2. The time now is 16:38.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.