2
我已在重定向magento index.php到http://mysite.com/
完成配置> Web>使用Web服務器重寫並更改爲'是'。
當我在htaccess中設置重定向301 /index.php http://mysite.com/。給加載頁面時出現錯誤「問題」。
我只是想mysite.com/index.php重定向到根網址mysite.com/在magento。
這是可行嗎?
請幫忙。
我已在重定向magento index.php到http://mysite.com/
完成配置> Web>使用Web服務器重寫並更改爲'是'。
當我在htaccess中設置重定向301 /index.php http://mysite.com/。給加載頁面時出現錯誤「問題」。
我只是想mysite.com/index.php重定向到根網址mysite.com/在magento。
這是可行嗎?
請幫忙。
你可以嘗試的mod_rewrite規則:
# remove index.php
RewriteCond %{THE_REQUEST} /index\.php [NC]
RewriteRule ^(.*?)index\.php$ /$1 [L,R=302,NC,NE]
還要確保這是第一條規則。