2012-05-14 61 views
0

我終於找到了一個辦法我只好像 /s.com/file.php?name=somthing搜索引擎友好的URL和重定向

與此代碼URL我改變了他們從我的網址 刪除GET參數到s.com/file/somthing

選項+的FollowSymLinks RewriteEngine敘述 在

重寫規則^文件/(.*?)$ http://s.com/file.php?name= $ 1

到目前爲止,一切都在我的本地主機正常

當我在URL上點擊喜歡s.com/file/somthing它會準確到URL

但在我的服務器重定向到老鏈接並顯示舊的URL

我不想顯示我的舊的URL

有人可以幫忙嗎?

回答

0

http重定向始終是external =>在瀏覽器中可見。試試看:

RewriteRule ^file/(.*?)$ /file.php?name=$1 
+0

非常感謝你 – h0mayun