源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

apache配置php实现单一入口方法

  • 时间:2020-07-16 07:05 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:apache配置php实现单一入口方法
在apache的httpd.conf加入,需要把LoadModule rewrite_module modules/mod_rewrite.so前面的“#”去掉
[u]复制代码[/u] 代码如下:
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.html index.htm </Directory>
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部