Skip to navigation
Force redirect domain to another domain with httaccess
28.08.14
RewriteEngine on RewriteCond %{HTTP_HOST} ^mydomain.com [NC] RewriteRule ^(.*)$ http://www.mydomain.com/$1 [R=301,L]
http://www.htaccesstools.com/articles/htaccess-redirect/
Reply
Anonymous
force rewrite for a https host RewriteEngine On RewriteCond %{HTTP:X-Forwarded-Proto} !https RewriteRule (.*) https://www.foo.com/$1 [R=301,L] RewriteCond %{SERVER_PORT} =80 RewriteCond %{HTTP_HOST} ^foo.com RewriteRule (.*) https://www.foo.com/$1 [R=301,L]
28.08.14
Reply
Anonymous
Information Epoch 1740366637
Using text data files.
Home
Notebook
Contact us