New Zenner
- Join Date:
- Mar 2011
- Posts:
- 5
- Plugin Contributions:
- 0
Redirect Http to www
Is it possible to have it set so that if people come to my site via
example.com would get redirect to https://www.example.com?
Views: 838
New Zenner
Is it possible to have it set so that if people come to my site via
example.com would get redirect to https://www.example.com?
Totally Zenned
add the following code to your root .htaccess file:
Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^example.com [nc]
rewriterule ^(.*)$ http://www.example.com/$1 [r=301,nc]
This will ensure that if you type in ‘example.com’, it will automatically redirect your visitor to the www version on your site.
*Note: this will only work if your host works with Linux servers with Apache mod-rewrite.
Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
20 years with Zencart !
New Zenner
Which is my root .htacces I seem to have a few?
Totally Zenned
Your root directory is example.com
Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
20 years with Zencart !
Tell staff why this post should be reviewed.