在htaccess文件中隐藏index.php
来源:互联网 发布:spring源码解读视频 编辑:程序博客网 时间:2024/05/16 01:43
仅适用于Apache下面,如果你的Apache已经开启rewrite模块的话(大部分环境都已经开启),可以在.htaccess文件中添加下面代码:
<IfModule mod_rewrite.c>RewriteEngine onRewriteCond %{REQUEST_FILENAME} !-dRewriteCond %{REQUEST_FILENAME} !-fRewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]</IfModule>
即可实现,把
http://thinkphp.cn/index.php/down
地址中的index.php隐藏,利用SEO。
- 在htaccess文件中隐藏index.php
- 129.在htaccess文件中隐藏index.php
- CI框架 .htaccess 隐藏url在index.php解决方案
- CI框架 .htaccess 隐藏url中index.php的解决
- php 去除路由中index.php 通过 .htaccess 文件
- 在url中隐藏index.php
- ThinkPHP 利用.htaccess文件的 Rewrite 规则隐藏URL中的 index.php
- ThinkPHP 利用.htaccess文件的 Rewrite 规则隐藏URL中的 index.php
- ThinkPHP 利用.htaccess文件的 Rewrite 规则隐藏URL中的 index.php
- ThinkPHP 利用.htaccess文件的 Rewrite 规则隐藏URL中的 index.php
- ThinkPHP 利用.htaccess文件的 Rewrite 规则隐藏URL中的 index.php
- 利用.htaccess文件的 Rewrite 规则隐藏URL中的 index.php
- CI框架 .htaccess 隐藏url中index.php的解决(转)
- 如何在FTP软件中显示隐藏文件,如.htaccess?
- 在apache中隐藏php文件后缀
- Yii隐藏index.php文件的步骤
- Nginx配置 隐藏入口文件index.php
- thinkphp5.0隐藏index.php入口文件
- 向HDFS 中写数据
- ThinkPHP邮件发送函数
- 海监111钓鱼岛维权 原属海军5000吨级破冰船
- switch(expr1)char byte short int [整数表达式或者枚举常量]
- 动态多光源 Light-Pre-Pass Lighting 实现
- 在htaccess文件中隐藏index.php
- JDBC
- 2012-12-19 - 12-20 11gR2 "Performance Tuning Guide" page 50 - 69
- FCoE模块设计与实现
- 关于两个程序的基本框架的肤浅理解
- cookie用法示例
- C++操作符总结
- Keep the Customer Satisfied poj 2786
- VC6.0 常见问题处理