HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (
-   Feature Requests (
-   -   http redirect to https (

derfy 23rd June 2006 15: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 15:55

Have a look here:

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

derfy 24th June 2006 22: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}


All times are GMT +2. The time now is 04:42.

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