请问,
我有一个连接 http://localhost/cheyuan/index.php?id=10想要变成 http://localhost/cheyuan/10.html
我的RewriteRule 是
<IfModule mod_rewrite.c>RewriteEngine onRewriteRule ([0-9]+)\.html$ ceshi.php?id=$1 [L]</IfModule>怎么实现不了呢?
我有一个连接 http://localhost/cheyuan/index.php?id=10想要变成 http://localhost/cheyuan/10.html
我的RewriteRule 是
<IfModule mod_rewrite.c>RewriteEngine onRewriteRule ([0-9]+)\.html$ ceshi.php?id=$1 [L]</IfModule>怎么实现不了呢?
RewriteRule ^([0-9]+).html$ ceshi\.php?id=$1 [L]
出现
http://localhost/cheyuan/1.html
RewriteEngine on
RewriteRule ^([0-9]+)\.html$ index\.php?id=$1 [L]
</IfModule>我的全部代码
(http://localhost/1.html )正常但是 访问 http://localhost/cheyuan/1.html 就不行了