thinkPHP 从写URL配置掉index.php
来源:互联网 发布:c语言sqrt函数 编辑:程序博客网 时间:2024/05/21 06:19
本文只在Apache环境下有效
(1)httpd.conf配置文件中加载了mod_rewrite.so模块
即在Apache的配置文件httpd.conf中的
#LoadModule rewrite_module modules/mod_rewrite.so
前面的‘#’号去掉使其起作用
(2)将httpd.conf配置文件中所有的‘AllowOverride None’ 的None改为 All
(3)把下面的内容保存为.htaccess文件放到应用入口文件(index.php)的同级目录下
<IfModulemod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
</IfModule>
(4)一定要重启Apache
0 0
- thinkPHP 从写URL配置掉index.php
- thinkPHP网络地址栏分隔符,url从写 隐藏index.php目录入口文件
- thinkphp在wamp 配置去掉url中index.php方法
- thinkPHP Apache 优化url,隐藏index.php所需配置
- ThinkPHP 配置 去掉 index.php
- ThinkPHP去掉URL中的index.php
- ThinkPHP-URL中去掉index.php
- ThinkPHP去除url中的index.php
- ThinkPHP去除url中的index.php
- thinkPHP如何去掉url中的index.php
- ThinkPHP去除url中的index.php
- thinkphp 去掉URL 里面的index.php
- ThinkPHP去除url中的index.php
- thinkphp 如何去除url中的index.php
- ThinkPHP去除url中的index.php
- ThinkPHP去除url中的index.php
- ThinkPHP去除url中的index.php
- ThinkPHP URL中去除index.php
- NSURLSession NSURLConnection下载大文件 断点下载
- 疯狂Java学习笔记(75)-----------NIO.2第一篇
- 我的互联网安全观
- Codeforces Round #306 (Div. 2) D - Regular Bridge 构造
- 第十二周项目三立体类族共有的抽象类
- thinkPHP 从写URL配置掉index.php
- 水仙花数
- ibatis 的<![CDATA[干嘛的
- HIVE快速入门
- 常见向量范数和矩阵范数
- java 到底老年代和年轻代的比例为多大合适呢?
- 技术 blog10 by 八戒
- DOCKER INSTALL
- 验证scala.math.random生成的随机数是均匀分布的