我的htaccess文件中有以下规则:
RewriteRule ^page/([A-Za-z0-9-]+)/?$ page/index.php?id=$1 [NC,L]
RewriteRule ^property/([A-Za-z0-9-]+)/?$ single.php?id=$1 [NC,L]
但是由于某些原因,当我使用example.com/page/name/访问地址时,出现404错误。 example.com/property/name /
也发生了同样的事情我的htaccess规则正确吗?当然,single.php和index.php文件在正确的位置。
谢谢。