htaccess
为
rewriteengine on
rewritecond %{request_filename} !-d
rewritecond %{request_filename} !-f
rewriterule ^(.*)$ index.php/$1 [qsa,pt,l]
httpd.conf
为
alias /qiu d:/qiu
options indexes multiviews
allowoverride none
order allow,deny
allow from all
伪静态没有成功,配置我该怎么修改呢?
我把allowoverride none 改为all 不行
------解决方案--------------------
allowoverride 允许改写
所以一定要令 httpd.conf
allowoverride all
可能有两三处,都要修改
你已经用
alias /qiu d:/qiu
设置了只虚拟目录,所以
options indexes multiviews
allowoverride none
order allow,deny
allow from all
一节要删去
htaccess 文件要放在 d:/qiu 下
访问用 http://localhost/qiu