Momment Member
Posts : 19 Join date : 2011-03-09
| Subject: .htaccess force http to https Fri Mar 25, 2011 6:57 am | |
| I want my domain. www.mozzi.co.za to automailty redirect a https instead of http im very new at this.. so a helping hand would be great please. I need this... www.mozzi.co.za/secure/cars/ once I get to this directory it mus check if its http or https.. if http then htaccess must make it https.... - Code:
-
RewriteEngine on # Ensure correct host RewriteCond %{HTTP_HOST} www.mozzi.co.za/secure/carsRewriteRule (.*) https://www.mozzi.co.za/secure/cars/$1 [R=301] |
|
Understand Member
Posts : 21 Join date : 2011-03-09
| Subject: Re: .htaccess force http to https Fri Mar 25, 2011 6:58 am | |
| |
|
Knowledge Member
Posts : 21 Join date : 2011-03-09
| Subject: Re: .htaccess force http to https Fri Mar 25, 2011 6:59 am | |
| - Understand wrote:
- RewriteEngine On
RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} haha nice screen name :) Anyways. - Code:
-
RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
- Code:
-
RedirectPermanent http://www.mozzi.co.za/ https://www.mozzi.co.za/
best regards |
|
Sponsored content
| Subject: Re: .htaccess force http to https | |
| |
|