.htaccess redirect
I want to do a .htaccess redirect from https to http and from non www to www, can anyone help me with the correct code?
-
To force http: RewriteEngine On RewriteCond %{HTTPS} on RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI}
To force www:Options +FollowSymlinks RewriteEngine On RewriteCond %{http_host} ^domain.com [NC] RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L]0 -
Hello :) Please follow the steps listed in the previous post. Feel free to let us know the outcome. Thank you. 0 -
It does the redirect on http from non www to www but on ssl if i access https:// domain.com it redirects me to another domain (not domain.com) and for https:// www. domain.com it shows the warrning atempt reach etc. and if i proceed, again goes to other domain :confused: 0 -
Hello :) Are you sure a valid SSL certificate has been installed for this domain name, and it's not utilizing another certificate for another domain on a shared IP address? Thank you. 0
Please sign in to leave a comment.
Comments
4 comments