首页 >后端开发 >php教程 >apache重写有关问题

apache重写有关问题

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB原创
2016-06-13 10:53:05733浏览

apache重写问题

PHP code
<!--Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->RewriteCond %{HTTP_HOST} ^news\.new_ci\.com#RewriteRule read-(\d+)\.html http://news.new_ci.com/index.php/read/index/$1RewriteRule 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

这句是不是有问题啊!
声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
上一篇:php异常下一篇:php中运用svn_checkout