网址: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) 和其他页面点击以后还是显示首页。这是什么原因?
怎么解决?
最佳答案