0
我想用htaccess php創建SEO友好的URL。.htaccess搜索引擎優化友好的網址找不到問題
原來這裏是網址:
http://www.example.in/viewitem.php?typedp=bus&viewdp=bus-seat-test-item
預計SEO友好的URL:
http://www.example.in/bus/bus-seat-test-item
在.htaccess中使用以下規則
Options +FollowSymLinks
RewriteEngine on
RewriteRule typedp/(.*)/viewdp/(.*)/ viewitem.php?typedp=$1&viewdp=$2
但它顯示因爲沒有找到4 04錯誤。
我對這個概念很陌生。
任何幫助表示讚賞。
聲音和快速的答案。你可能想要添加一個'QSA'標誌,你永遠不會知道......並且可能用'END'標誌替換'L'標誌。 – arkascha
@arkascha:我認爲在這種情況下不需要用'END'替換'L'。我對嗎? – smoqadam
我不能說,因爲我不瞭解情況,是嗎?當然它會更安全,不是嗎?除非OP使用真正過時的http服務器。 – arkascha