apache配置php实现单一入口方法
在apache的httpd.conf加入,需要把LoadModule rewrite_module modules/mod_rewrite.so前面的“#”去掉
?
DocumentRoot /
?
<Directory />
Options Indexes FollowSymLinks MultiViews
AllowOverride None
#AllowOverride All
<IfModule mod_rewrite.c>
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]
</IfModule>
DirectoryIndex index.php index index
</Directory>
上一篇:xampp安装后apache 80端口被占用的解决方法
新加坡服务器的速度怎么样
深圳机房IDC数据中心如何办理托
超融合最少需要几台服务器
泰国服务器供应商哪家的比较好?
海外服务器哪个好?怎么选
什么是Isp路由服务器?有什么用
泰国服务器租赁和托管分别有哪些
租用新加坡服务器时应该注意什么
超融合一体机和服务器的区别
泰国服务器租用怎么选租用到好的