用户
 找回密码
 入住 CI 中国社区
搜索
查看: 1450|回复: 1
收起左侧

.htaccess内容在万网空间不起作用

[复制链接]
发表于 2014-11-17 15:37:57 | 显示全部楼层 |阅读模式
我用的是http://www.net.cn/hosting/x3/?spm=5334.7473391.2.51.rVT6Pz 这个linux空间, 支持.htaccess, 但我上传了.htaccess文件后,里面的最后一行不起作用, 请大家帮忙看看是怎么回事
RewriteEngine On
RewriteCond $1 !^(index\.php|images|css|js|up|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]        //这一行不起作用

 楼主| 发表于 2014-11-17 16:29:08 | 显示全部楼层
万网的给的例子,
RewriteEngine On
RewriteRule ^test\.html$ test.php

这个是有用的
访问test.html即是由test.php 重写而来

本版积分规则