TP5怎么隐藏index.php
来源:互联网 发布:淘宝售后职责 编辑:程序博客网 时间:2024/05/21 12:47
tp5对URL简化,不做简化情况下我们访问的是localhost/index.php/index/index/index ,做简化后省去index.php。
我们需要找到public下面的.htaccess文件
修改成这样
<IfModule mod_rewrite.c> Options +FollowSymlinks -Multiviews RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L]</IfModule>
这样就可以直接访问localhost/index/index/index 了
阅读全文
0 0
- TP5怎么隐藏index.php
- tp5隐藏index.php
- tp5无法隐藏index.php入口文件
- tp5隐藏入口文件index.php
- [PHP学习]TP5学习之Apache服务器隐藏index.php入口文件
- Apache服务器下无法隐藏tp5的入口文件index.php
- tp5.0.11URL重写隐藏应用的入口文件index.php
- yii 隐藏index.php
- Yii隐藏index.php
- YII隐藏index.php
- ci 隐藏index.php
- thinkphp 隐藏index.php
- 6. 隐藏 index.php
- think隐藏index.php
- nginx 隐藏index.php
- PHP: Yii 隐藏index.php
- Thinkphp 隐藏 index.php 方法
- ci的index.php隐藏
- Scala学习(1)IntelliJ Idea安装Scala编译插件,基于Maven
- Android studio NDK 开发(一些坑)
- zookeeper和hbase安装
- SCI、UART与RS232区别
- 大数据分页功能 的一种实现方式
- TP5怎么隐藏index.php
- Linux学习篇第三章之~squid
- Quartz定时任务简单demo及与Spring整合
- Java代理
- What's New on Java 7 Phaser
- Android 使用Ant+Emma+Junit收集android代码覆盖率(来自联想的一位同事2012.12.24)
- Could not publish to the server.Please assign JRE to the server
- js中 var a = function(){} 与function b(){}两种函数声明的区别
- java-service-wrapper 社区版本(windows X64)