sunchao8868 发表于 2012-10-20 14:42:10

lnmpa的静态文件的重写怎么不生效

大牛 help :Q
我的.htaccess文件是这样的
RewriteEngine on
RewriteCond %{http_host} ^yuming.com
RewriteRule ^(.*)$ http://www.yuming.com/$1

RewriteRule ^(.*)/111\.html$ $1/222.html
RewriteRule ^(.*)/showAsk-(+)\.html$ $1/?ct=question&id=$2
RewriteRule ^(.*)/type\.html$ $1/?ct=type

下面两条语句是生效的 但是为什么前面的 2个html 的重写确不生效
输入 域名/111.html并没有 指向222.html
难道静态文件的重写要去 nginx 配置文件写吗?

licess 发表于 2012-10-20 15:01:02

nginx ,apache都行

sunchao8868 发表于 2012-10-20 15:03:58

回复 2# 的帖子

军哥 可我这条是在 .htaccess写的 为什么这个111.html 没生效:Q
页: [1]
查看完整版本: lnmpa的静态文件的重写怎么不生效