I am facing some issues while writing RewriteRule in .htaccess.
RewriteRule ^index.html/home/([\\(\\)A-Z_-]+) search.php?term=$1 [NC,L]
RewriteRule ^index.html/home/routes-to-from-([\\(\\)0-9a-zA-Z_-]+)/([\\(\\)0-9a-zA-Z_-]+)/([0-9]+) newsearch.php?term=$1&name=$2&page=$3 [NC,L]
Whenever I am trying to execute the second rule, It always executes the first rule. How can I execute the second rule, that why I am using [NC,L]
at the end for the exact match.
这是我的错误,当我将第二个规则放在第一个规则中时,它起作用了,因为它太具体了。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.