Opencart multistore “domain.com/aaa” instead of “aaa.domain.com”
问题 Anyone can help to have "domain.com/store1/any-product" instead of "store1.domain.com/any-product"? The second is what I have and the first is what I would like to have. Maybe some .htaccess code added? Anything else, please? 回答1: You should be able to achieve that by using the following rule in your .htaccess : RewriteEngine On RewriteCond %{HTTP_HOST} ^store1.example.com RewriteRule ^(.*)$ http://example.com/store1/$1 [L,NC,QSA] What the above does is if the condition for store1.example.com