0
我將網站移動到一個magento新的域名。 主頁效果很好,但所有環節給予404移動域名 - 只有主頁作品
我驗證了 「*的LoadModule rewrite_module模塊/ mod_rewrite.so *」 在httpd.conf中啓用
的.htaccess有這個條目:
## rewrite everything else to index.php
RewriteRule .* index.php [L]
舊網站
http://old_site.com/ << this works
http://old_site.com/en/contentpage.html << this works
新網站
http://newsite.com/shop1/en
http://newsite.com/shop1/en/contentpage.html << this is a typical link from the home page
<< link from new site takes me here, but this gives 404 error
http://newsite.com/shop1/index.php/en/contentpage.html < this link, however, does works
http://newsite.com/shop1/en/contentpage.html << link from new site takes me here, but this gives 404 error
。
什麼是「從新站點鏈接」是什麼樣子?它是一個完全合格的域名的絕對URL嗎?它只是一個絕對URL(以'/'開始)還是一個相對URL(不以'/'開頭),以及您點擊鏈接的頁面的URL是什麼? –
您是否更改了數據庫中的基礎URL以匹配新域?這是第一個最常見的錯誤。 – clockworkgeek
Jon - 我在上面添加了其他信息。 –