thinkphp htaccess问题
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
PHP怎么学习?PHP怎么入门?PHP在哪学?PHP怎么学才快?不用担心,这里为大家提供了PHP速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号