2014-04-08 68 views
0

我試圖做一個重定向在我的Joomla .htaccess文件 不正確的鏈接是:301重定向舊的鏈接到新的子目錄

http://nilandsplace.com/index.php/camping_eng/camping?___store=camping_eng 

我試圖讓它去:

http://nilandsplace.com/store/index.php/camping/camping-home/?___store=camping 

不管是什麼301重定向我試過它不起作用我得到404頁未找到或我得到500服務器錯誤。它也可能只是去:

http://nilandsplace.com/store/camping/ 

我差點就被擺脫的鏈接的index.php的工作,但也有很多的老外部鏈接與index.php文件有它。我曾嘗試更多然後15種不同的方式,並且不會破壞我的Joomla鏈接仍然無法得到它

http://nilandsplace.com/index.php 

我知道的基本知識,重寫引擎是和我已經把一切的Joomla重定向是很多之前。 Joomla .htaccess是Joomla安裝的基本版本。 感謝詹姆斯·賴能 http://nilandsplace.com

回答

0

你可以在你的根的.htaccess使用此規則爲你的第一個規則:

RewriteCond %{THE_REQUEST} /camping_eng/camping\?___store=camping_eng [NC] 
RewriteRule^/store/camping/? [R=301,L]