2012-09-27 33 views
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 

+0

什麼是「從新站點鏈接」是什麼樣子?它是一個完全合格的域名的絕對URL嗎?它只是一個絕對URL(以'/'開始)還是一個相對URL(不以'/'開頭),以及您點擊鏈接的頁面的URL是什麼? –

+0

您是否更改了數據庫中的基礎URL以匹配新域?這是第一個最常見的錯誤。 – clockworkgeek

+0

Jon - 我在上面添加了其他信息。 –

回答

0

根據你提供的描述,它看起來像使用Apache重寫選項沒有在安裝期間設置,或在某處丟失。

檢查在core_config_data表路徑web/seo/use_rewrites - 它應有的價值,如果它不,它設置爲1

+0

後端工作正常,所以我能夠在那裏檢查。使用Web服務器重新啓用。 –