我,因爲我使用重寫URL有問題重定向舊網址到新的URL重寫..我想用的htaccess或PHP
我的舊網址: Website.com/index.php?act=appdetail&appid=oWV
新的重寫URL http://website.com/angry_birds_rio-appdetail-oWVi.html
但我所有的舊網址在谷歌索引,如果有人來我的網站顯示舊網址和谷歌還INDEXED新網址。其在網站上製作複製頁面的問題。
讓我知道解決的辦法
我重寫URL的htaccess
RewriteEngine敘述在
重寫規則^([^ - ] ) - ([^ - ]) - ([^ - ] ) - ([^ - ]) - ([^ - ?] *)HTML $的index.php appanme = $ 1 &行爲= $ 16 &的appid = $ 3 &頁= $ 4 &貓= $ 5 L]
重寫規則^([^ - ] ) - ([^ - ]) - ([^ - ] ) - ([^ - ]) - ([^ - ] ) - ([^ - ])的.html $的index.php appanme = $ 1 &行爲= $ 16 &的appid = $ 3 &頁= $ 4 &貓= $ 5 & sString = $ 5 L]
重寫規則^([^ - ?] ) - ([^ - ]) - ([^ - ] *)。html $ index.php?appanme = $ 1 & act = $ 2 & appid = $ 3 [L]
http://stackoverflow.com/questions/12460515/redirect-php-page-to-another-php-page-using-301-htaccess –
它沒有幫助我..我需要一個解決方案..我不是好的htaccess –
謝謝大家,我只是找到一種方式.. –