How to add WWW in magento URL?

According to the SEO best practices, you website should resolve to one URL. And usually it’s WWW version. To make your Magento website open through WWW, you need to access .htaccess file which is located in the Magento root. Then search RewriteEngine and insert the following just below:

RewriteCond %{HTTP_HOST} ^yourdomain.com$ [NC]

    RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [R=301,L]

Once all the changes are done, Save the .htaccess file.

  • Now,login to your Magento Admin panel.
  • Click on System and select Configuration
  • Click on Web option under the general section.
  • Expand the Unsecure tab and change the base URL to http://www.yourdomain.com instead of http://yourdomain.com. 

Once changes are done, click on Save Config button.

After made all the changes, your Magento store will start working through http://www.yourdomain.com.

 

Leave a Reply

Your email address will not be published. Required fields are marked *