cancel
Showing results for 
Search instead for 
Did you mean: 

How to redirect multi store Magento to open through www?

How to redirect multi store Magento to open through www?

I created magento second store (abcd.com) using following method:

 

System->Manage Stores

Website Name: website_abcd

Store Name: abcd

Store View Name: english_abcd

 

Sustem->Configuration->Web

Unsecure->Base URL: http://abcd.com/

Secure->Base URL: http://abcd.com/

 

.htaccess

 

Options +FollowSymLinks
RewriteEngine on

SetEnvIf Host .*abcd.* MAGE_RUN_CODE=english_abcd
SetEnvIf Host .abcd.* MAGE_RUN_TYPE=website_abcd

 

Question - how to redirect Magento to open through www.abcd.com instead of abcd.com?

 

 

3 REPLIES 3

Re: How to redirect multi store Magento to open through www?

You might want to add this to your .htaccess file, before the "SetEnvIf" part:

 

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

Please let me know if this works.

If this response was helpful to you, consider giving kudos to this post.
If this response solved your problem, click accept as solution to help others solve this

Oracle fusion cloud hcm online training

http://www.erptree.com/oracle-fusion-hcm-online-trainings/ that offers varied online coaching courses on totally different technical platforms, however we have a tendency to in the main concentrate on Oracle Fusion hcm coaching across everywhere the globe. we've a team of Oracle Fusion hcm certified trainers with Ten years of experience.

Re: Oracle fusion cloud hcm online training

Oracle Fusion Human Capital Management (HCM) is a revolutionary step in human capital management. Built from the ground up to help you do things your way, know your people better, and work as a team, Oracle Fusion HCM redefines the business of HR to provide value to every person in the organization.

 

Thanks!