项目在阿里云隐藏index.php出问题

浏览:1503 发布日期:2015/09/05 分类:求助交流 关键字: 隐藏 静态
HDPHP项目在阿里云(CentOS) 隐藏index.php出问题:
网址:http://www.xj123.biz/

我在 config 里面开启了静态:$config['URL_REWRITE']      = True;
$config['URL_TYPE']         = 1;  // 1: PATHINFO模式 2:普通模式 3:兼容模式
$config['route']            = array(
                                                                'M'=>'M/Index/index',
                                '/^category-(\d+).html$/'=>'Index/Index/category/cid/#1',
                                '/^Kino-(\d+)-(\d+).html$/'=>'Kino/Index/info/cid/#1/vid/#2'
 );
在根目录上传了 .htaccess 文件,其内容:<FilesMatch "\.(bak|sql|lib)$">
    order deny,allow
    deny from all
</FilesMatch>

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule  ^(.*)$ index.php\/$1 [L]
首页打开正常,但是栏目页(http://www.xj123.biz/category-1.html) 和其他页面点击以后还是显示首页。
这是什么原因?
怎么解决?
最佳答案
评论( 相关
后面还有条评论,点击查看>>