Latest Posts
Home =>> Fix Error =>> Fix Magento Error =>> How to redirect Magento to open through www
magento redirect url , magento https redirect loop , magento 2 force https , magento redirect http to https

How to redirect Magento to open through www

To become best in the user search results,your website url must be included with “www“.If your website url is having this “www“, then search engines understands your web store’s products URLs easily based on their algorithms.No need to do much work here to get that URL like http://www.domainname.com.Even if you are beginner at Magento you can do this below simple steps.

Open .htaccess file which will be located at Magento root directory and locate RewriteEngine line in that file.And after that line simply paste below mentioned code.

RewriteCond %{HTTP_HOST} ^mywebstore.com$ [NC]
RewriteRule ^(.*)$ http://www.mywebstore.com/$1 [R=301,L]

Replace mywebstore.com with your domain name and save the file.That’s it you are done.Now check in new browser or check in incognito browser.We hope this article is helped you to get beautiful url with www. And please share the same on facebook. “Happy Coding.!”

Leave a Reply

x

Check Also

how to speed up magento 2, speed up magento backend , speed up magento checkout , speed up magento site

How to speed up Magento Store

For the beginners,They don’t know about how to speed up magento 2 store pages loading time when their manager asks them.There is no much of work to gain speed in loading store pages,you can follow ...