CI中如何去掉index.php
2013-03-29 11:43
239 查看
CI中去掉index.php
apache中伪静态的配置
apache中alias的配置
将CI中配置文件
application/config/config.php中
$config['index_page'] = "index.php";
改为$config['index_page'] = "";。
apache中伪静态的配置
RewriteEngine on RewriteBase /test RewriteCond %{REQUEST_URI} ^system.* RewriteRule ^(.*)$ index.php/$1 [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L]
apache中alias的配置
Alias /test "f:/www" <Directory "f:/www"> Options Indexes FollowSymLinks AllowOverride all Order allow,deny Allow from all </Directory>
将CI中配置文件
application/config/config.php中
$config['index_page'] = "index.php";
改为$config['index_page'] = "";。
相关文章推荐
- phpCI框架 如何去掉默认index.php
- 如何去掉CI (codeigniter)url中的index.php
- PHP CI(CodeIgniter) 如何去掉url中的index.php
- CI路径中如何去掉index.php
- ci中的url重写,去掉index.php
- CI去掉网址中的index.php
- 如何去掉Magento默认URL中的index.php
- URL如何去掉index.php
- CI去掉 URL 中的 index.php
- 如何去掉CodeIgniter URL中的index.php
- 如何去掉Magento默认URL中的index.php
- CI框架在Apache服务器下去掉URL中的index.php
- 去掉php框架CI默认url中的index.php
- yii2 如何使用 PATH_INFO 模式 并去掉 index.php
- 去掉CI默认url中的index.php
- laravel框架如何去掉URL中index.php
- 去掉CI URL中index.php
- 如何去掉CodeIgniter URL中的index.php
- 如何去掉Magento默认URL中的index.php