作者:南塘所有的经筒 | 来源:互联网 | 2014-03-27 11:39
apache重写问题PHPcodeRewriteCond%{HTTP_HOST}^news\.new_ci\.com#RewriteRuleread-(\d+)\.htmlhttp://news.new_ci.com/index.php/read/index/$1RewriteR
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
这句是不是有问题啊!