Setting up a Prestashop with multistore functionality together with multilingual support. This means that Prestashop from default would define my URL as:
domain.com/store/lang => domain.com/uk/ja (UK store with Japanese language)
However I would really appreciate my URLs to have both store and language at one level:
domain.com/store-lang => domain.com/uk-ja
I figured out that this might be possible through either .htaccess or the dispatch.php file. However can't seem to get it working. And I would also appreciate a solution where it is not too hacky and harcoded many places.
I hope someone might have tried this before or maybe able to think of any possible solution :)
We have not come up with any solution to this issue. I am going to implement the application with /store/language and hope it wont affect the user or SEO. I have chosen to accept the answer below even though it is not actually working. However it was the only answer and really helpful.
You need to make a rewrite rule
look http://www.presto-changeo.com/en/content/6-prestashopseotips (and http://www.webshopstarter.com/shoppingcarts/prestashop-seo-friendly-urls/ )
and add:
RewriteRule ^(\w+)-(.*) $1/$2 [QSA,L,R=301]
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.