0
我有url重写问题。在.htaccess中重写url
我的文件存在于
www.example.com/test2/test.php
我想写网址为
www.example.com/test.html
我的.htaccess文件
RewriteEngine On<br />
RewriteRule ^([a-zA-Z0-9-/]+).html$ test2.php?id=$1
RewriteRule ^([a-zA-Z0-9-/]+).html/$ test2.php?id=$1
rewriterule ^([a-za-z0-9-/]+).html$ test2.php?id=$1
rewriterule ^([a-za-z0-9-/]+).html/$ test2.php?id=$1
.htaccess文件的代码是在test2的目录。
请帮帮我。