Viewing articles tagged 'htaccess'
Redirect http to https with htaccess
http > httpsRewriteEngine On#First rewrite any request to the wrong domain to use the correct...
Redirect https to http with htaccess
RewriteEngine OnRewriteCond %{HTTPS} =onRewriteRule ^(.*)$ http://%{HTTP_HOST}/$1 [L,R=301]
Redirect main domain to subdomain using htaccess
RewriteEngine On#Redirect main domain to subdomainRewriteCond %{HTTP_HOST} !^$RewriteCond...
Redirect non www domain to www domain - without https and htaccess
RewriteEngine OnRewriteCond %{HTTP_HOST} !^www\.RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1...
Subdomain redirect to main using htaccess
RewriteEngine On#subdomain redirect to mainRedirectMatch 301 ^/sell/$ http://maindomain.com/