Skip to main content

.htaccess redirect

Comments

4 comments

  • vanessa
    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
  • cPanelMichael
    Hello :) Please follow the steps listed in the previous post. Feel free to let us know the outcome. Thank you.
    0
  • 'Giovanni
    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
  • cPanelMichael
    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.