apache重写问题
- PHP code
RewriteCond %{HTTP_HOST} ^news\.new_ci\.com #RewriteRule read-(\d+)\.html http://news.new_ci.com/index.php/read/index/$1 RewriteRule read-(\d+)\.html index.php/read/index/$1
注释那行可以访问但是会301,下面那种写法不行,要实现输入 news.new_ci.com/read-1573.html 实际访问的为news.new_ci.com/index.php/read/index/1573应该怎么写规则?框架是ci
------解决方案--------------------
RewriteRule read-(\d+)\.html /index.php/read/index/$1 试下
------解决方案--------------------
RewriteCond %{HTTP_HOST} ^news\.new_ci\.com
这句是不是有问题啊!