CI中如何去掉index.php_PHP教程
apache中伪静态的配置
[plain]
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]
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的配置
[plain]
Alias /test "f:/www"
Options Indexes FollowSymLinks
AllowOverride all
Order allow,deny
Allow from all
Alias /test "f:/www"
Options Indexes FollowSymLinks
AllowOverride all
Order allow,deny
Allow from all
将CI中配置文件
application/config/config.php中
$config['index_page'] = "index.php";
改为$config['index_page'] = "";。
上一篇: HTML5中的拼写检查
下一篇: web开发用python还是php?
推荐阅读
-
php正则取img标记中任意属性(正则替换去掉或改变图片img标记中的任意属性)_PHP教程
-
巧学巧用:如何使用PHP中的字符串函数_PHP教程
-
在node.js中多个异步过程中如何判断执行是否完成(详细教程)
-
PHP/如何在Linux服务器中隐藏PHP版本_PHP教程
-
PHP函数in_array()如何检查数组中的值_PHP教程
-
php中如何防止表单的重复提交_PHP教程
-
继续,如何URL重写去掉index.php?不是想象中的那么容易啊
-
支付宝中超皮肤如何获得 支付宝领取中超皮肤教程
-
解析php框架codeigniter中如何使用框架的session_PHP教程
-
如何去掉2.7中乱跑的“Powered by ECShop”?