嗨重寫URL我想問我怎麼能轉換 http://abc.tk/comments.php?post_referrel_id=16 到 http://abc.tk/comments.php?post_referrel_id/16 使用的.htaccess mod_write查詢字符串
RewriteBase/
Options +FollowSymlinks -MultiViews
RewriteEngine On
RewriteRule ^comments\.php\?post_referrel_id/([^/]*)$ /comments.php?post_referrel_id=$1 [L,QSA]
什麼是您在瀏覽器中輸入的鏈接。 @ user1835722 –
這是我輸入的鏈接....... http://blogpakistan.tk/comments.php?post_referrel_id = 13 – user1835722
請輸入:blogpakistan.tk/comments.php?post_referrel_id/13 @ user1835722 –