登录 注册

配置htaccess文件隐藏index.php

收藏
[Apache Conf] 标签: 2012-10-31 12:47
用于在apache环境下面隐藏URL地址中的index.php
原始代码 全屏查看 0评 / 0藏 / 4506阅  跳至 / 6行
1
2
3
4
5
6
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
</IfModule>

最新评论

  · · · · · ·  (共0条)

目前还没有评论

登录后您才可以发表评论。 马上登录 立即注册
cottage
2012-02-29加入
一段精湛的代码,天涯何处寻知音!
Back to Top