我在子文件夾web8.us/shop/
中安裝了opencart,並將其永久重定向到shop.web8.us
。opencart .htaccess將子文件夾重定向到子域語言不起作用
我的.htaccess文件:
RewriteEngine On
Options +FollowSymLinks
RewriteBase/
RewriteCond %{http_host} ^web8.us [nc]
RewriteRule ^(.*)$ http://www.web8.us/$1 [L,R=301]
#this is the magic line below here
RedirectMatch 301 ^/shop/(.*)$ http://shop.web8.us/$1
所有作品,未經語言好,但是當你試圖從英語語言更改爲西班牙語它仍然停留在英語。有任何想法嗎?
向我們顯示西班牙語版本的鏈接作爲例子,應該工作 –