Home > Backend Development > PHP Tutorial > thinkphp htaccess有关问题

thinkphp htaccess有关问题

WBOY
Release: 2016-06-13 10:14:02
Original
1071 people have browsed it

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

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template