...

View Full Version : URL Rewrite for www,http



mathceleb
10-12-2011, 01:22 PM
I would like to redirect the following urls to https://www:


www.
http://
https://


Below is what I have so far

RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\. [NC,OR]
RewriteCond %{HTTP_HOST} !^http\: [NC]
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L]

billigseo
10-22-2011, 02:02 PM
I think this would work:



RewriteEngine on
RewriteCond %{HTTP_HOST} ^site.com$
RewriteRule ^$ https://www.site.com [R=301,L]

Samhain13
11-01-2011, 09:11 PM
^ Not sure if it was what OP was looking for but it helped me with another issue. Thanks.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum