在apache的httpd.conf加入,需要把LoadModule rewrite_module modules/mod_rewrite.so前面的"#"去掉

复制代码 代码如下:

DocumentRoot /


Options Indexes FollowSymLinks MultiViews
AllowOverride None
#AllowOverride All

RewriteEngine on
RewriteBase /
#不显示index.php

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^/?(.*)$ /index.php?%{QUERY_STRING} [L,NC]
#RewriteRule ^(.*)$ index.php?$1 [QSA,L]

DirectoryIndex index.php index.html index.htm

本站所有文章和图片均来自用户分享和网络收集,文章和图片版权归原作者及原出处所有,仅供学习与参考,请勿用于商业用途,如果损害了您的权利,请联系网站客服处理。

Apache 内容动态缓冲模块 mod_cache应用
xampp安装后apache 80端口被占用的解决方法

相关推荐

栏目热门