1
我想改写如下:htaccess的:多重写规则
http://www.example.com/map到http://www.example.com/index.php?p=map
和
http://www.example.com/map/1到http://www.example.com/index.php?p=map&id=1
我当前的代码是:
RewriteEngine On
RewriteRule ^([^/]*)\$ /index.php?p=$1 [NC]
RewriteRule ^([^/]*)/([^/]*)\$ /index.php?p=$1&id=$2 [L]
但如果失败...
谁能帮助我正确的.htaccess代码?感谢提前!
结束行匹配需要无处可逃 –