Redirecting to www.domain.com
Posted by on 27 February 2014 06:01 AM
|
|
There is much discussion about whether it’s best for your site to display ‘domain.com’ or ‘www.domain.com’. While it technically doesn’t make a difference some people have their own preference for varying reasons, such as potential SEO benefits or the need for having a consistent domain address. It’s super easy to push all requests for 'domain.com' to re-direct to 'www.domain.com'! To begin implementing this re-direct you’ll need to make an .htaccess file. If you already HAVE an .htaccess file in the public_html folder of your cPanel account, then simply add the text below to the top of the file and save it: RewriteEngine On If you DO NOT already have an .htaccess file in the public_html folder then you’ll just need to create one:
Once the file has been created add the code shown below to the file and save it again: RewriteEngine On Now, all that’s left to do is upload this file via either FTP or cPanel File Manager, and make sure that it’s in the public_html folder of your cPanel account. To verify your changes go ahead and visit your website (without the ‘www.’) and it should automatically change ‘domain.com’ to ‘www.domain.com’. Note: if you recently visited your site before making the change then you may need to refresh the page or clear your web browser’s cache to see the changes. If you need any assistance with this, please do not hesitate to get in touch with our support team! We’re here to help. | |
|