[英]Rewriting Url With .htaccess for Muliple Parameters
我想使用.htaccess Plz重寫網址閱讀代碼,您就會了解我的意思
我的網址:
article.php?id=1&title=example
在.htaccess中使用它
RewriteRule ^article/([0-9]+)/([0-9a-zA-Z_-]+)$
article.php?id=$1&title=$2 [NC,L]
我懂了
article/1/example
我需要的是
article/example
所以像這樣:
RewriteRule ^article/([0-9a-zA-Z_-]+)$ article.php?title=$1 [NC,L]
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.