htaccess伪静态 最后面加斜杠怎么写

2024-11-22 02:38:36
推荐回答(1个)
回答(1):

不加/ RewriteRule ^([^/]+)/([0-9]*)$ search.php?city=$1&class=$2
必须加/ RewriteRule ^([^/]+)/([0-9]*)/$ search.php?city=$1&class=$2
随便 RewriteRule ^([^/]+)/([0-9]*)/?$ search.php?city=$1&class=$2