這是我當前的鏈接: http://localhost/htaccess_url/home.php?pnlk=adindex。如何在瀏覽器中刪除部分網址
我想顯示這樣的網址:http://localhost/htaccess_url/adindex。
我試過了htacces。我的代碼是:
RewriteEngine On
RewriteRule ^([a-zA-Z0-9_-]+)$ home.php?route=$1
RewriteRule ^([a-zA-Z0-9_-]+)/$ home.php?route=$1
請幫幫我。我是這方面的新人。
謝謝。
嗯,你改變網址的權利? –
@S Sopno:請檢查我的更新答案。 –