Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Multi-Store structure, URL issue
 
kenmars
Jr. Member
 
Avatar
Total Posts:  18
Joined:  2010-01-22
Hong Kong
 

Hello everybody,

Our team are now working on a magento project configuring multi stores structure and stucked by some URL issue.

We have serval stroes named storeA, storeB, storeC, etc.
Each store has 3 views(languages), language1, language2, language3.
The code for a view is: storeA_language1, storeA_language2, etc.

So the URLs structure is like this:

http://www.domain.com/storeA_language1/****
http://www.domain.com/storeA_language2/****
http://www.domain.com/storeA_language3/****
http://www.domain.com/storeB_language1/****
http://www.domain.com/storeB_language2/****
etc.

But this is not that user friendly. We want to ask if we can have the URL rewritted to this format:
http://www.domain.com/storeA/language1/***

We’ve tried to edit the .htaccess file to set up the rewriterule like:
RewriteRule ^storeA/language1(.*)$ /storeA_language1$1

But it doesn’t work. Magento seems to have the URL before rewritten.

Any help will be highly appreciated.
Thank you for reading.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Gui
Guru
 
Avatar
Total Posts:  588
Joined:  2008-03-09
 

Just thinking out loud. In System > Configuration under Default Web > try to set “Add Store Code to Urls” to “No” Perhaps then your rewrite rule does work.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Mirasvit
Guru
 
Avatar
Total Posts:  639
Joined:  2009-08-22
 

As a variant, you can try the ready SEO extensions.  Check this one http://mirasvit.com/magento-extensions/advanced-seo-suite.html

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top