apache 配置rewrite模块,URL中隐藏index.php
2016-10-09 23:47
796 查看
打开httpd.conf
去掉下面的井号
在网站根目录添加.htaccess
重启服务器
去掉下面的井号
#LoadModule rewrite_module modules/mod_rewrite.so把前面的警号去掉
在网站根目录添加.htaccess
RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php/$1 [L]
重启服务器
相关文章推荐
- thinkPHP Apache 优化url,隐藏index.php所需配置
- apache配置rewrite规则,删除url中的index.php
- ThinkPHP 利用.htaccess文件的 Rewrite 规则隐藏URL中的 index.php
- 修改apache配置文件去除thinkphp url中的index.php(转)
- ThinkPHP 利用.htaccess文件的 Rewrite 规则隐藏URL中的 index.php
- Nginx配置REWRITE隐藏index.php
- ThinkPHP 利用.htaccess文件的 Rewrite 规则隐藏URL中的 index.php
- ThinkPHP 利用.htaccess文件的 Rewrite 规则隐藏URL中的 index.php
- ThinkPHP 利用.htaccess文件的 Rewrite 规则隐藏URL中的 index.php
- apache服务器开启rewrite以及使用rewrite将thinkphp的url中index.php消除
- nginx 隐藏index.php 并开启rewrite日志调试(apache也有)
- ThinkPHP中通过URL重写隐藏应用的入口文件index.php的相关服务器的配置
- Apache的rewrite模块(url重写模块)配置
- ThinkPHP 利用.htaccess文件的 Rewrite 规则隐藏URL中的 index.php
- apache 配置虚拟目录+默认页+隐藏index.php
- apache配置伪静态隐藏index.php文件
- ThinkPHP 利用.htaccess文件的 Rewrite 规则隐藏URL中的 index.php
- 修改apache配置文件去除thinkphp url中的index.php
- 修改apache配置文件去除thinkphp url中的index.php
- apache2.2.21下配置url地址重写 去掉index.php