PHP头条
热点:

CI 框架去掉url 中index.php的方法,ciindex.php


1 修改 apache 的 httpd.conf 文件 

#LoadModule rewrite_module modules/mod_rewrite.so   

去掉前面的# 

2 找到 你程序目录下的 .htaccess 文件

内容如下

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]
</IfModule>

 

保存 ,重启就好了

 

www.phpzy.comtrue/php/36278.htmlTechArticleCI 框架去掉url 中index.php的方法,ciindex.php 1 修改 apache 的httpd.conf 文件 #LoadModule rewrite_module modules/mod_rewrite.so 去掉前面的# 2 找到 你程序目录下的.htaccess 文件 内容如下 IfModule mod_rewrite....

相关文章

PHP之友评论

今天推荐