Seo 重写.htaccess中的url
我有url重写问题 我的档案存在于 www.example.com/test2/test.php 我想把url写为 www.example.com/test.html .htaccess文件中的我的代码Seo 重写.htaccess中的url,seo,Seo,我有url重写问题 我的档案存在于 www.example.com/test2/test.php 我想把url写为 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 ^(
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
在引擎上重写
重写规则^([a-zA-Z0-9-/]+).html$test2.php?id=$1
重写规则^([a-zA-Z0-9-/]+).html/$test2.php?id=$1
重写规则^([a-za-z0-9-/]+).html$test2.php?id=$1
重写规则^([a-za-z0-9-/]+).html/$test2.php?id=$1
.htaccess文件位于test2目录中
请帮帮我。这可能对你有用
RewriteEngine on
RewriteBase /
RewriteRule ^(.*)\.html$ test2.php?id=$1 [L]