Viewing 1 item
Archive | June 10, 2013

.htaccess mod_rewrite snippets

Redirect all parked domains onto main domain with https RewriteEngine on RewriteCond %{HTTPS} !=on RewriteCond %{HTTP_HOST} ^www\.domain\.co\.uk$ [OR] RewriteCond %{HTTP_HOST} ^http://www\.domain\.co\.uk$ [OR] RewriteCond %{HTTP_HOST} !^www\.domain\.co\.uk$ [OR] RewriteRule ^(.*)$ https://www.domain.co.uk/$1 [R=301,L] Redirect all parked domains onto main domain # Force all traffic onto one domain with www (will redirect all aliases) RewriteEngine on RewriteCond %{HTTP_HOST} !^www.your_domain.com$  Full Article…

0