我正在我的.htaccess文件中编写规则来配置显示的URL。
在我的网站我有两个页面。例如。page.php和page_edit. php。
我的.htaccess文件我制定了以下规则:
RewriteRule ^page page.php [NC,L]
RewriteRule ^page/create page_edit.php?editID=1 [NC,L]
然而,第二条规则永远不会被捕获,页面总是被定向到page.php(第一条规则)。我猜这是因为它将第一条规则的字符串('page ')作为子字符串。
我怎样才能绕过这个问题呢?
1条答案
按热度按时间xbp102n01#
您可以更改规则顺序,在top中更具体