更新.htaccess后,首页不能访问
原来可以访问,但是现在不能访问首页,里面的都可以访问,这是为什么呢RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1
原来是
RewriteEngine on
RewriteCond $1 !^(index\.php|images|css|js|up|kindeditor|robots\.txt|PHPExcelClasses|info\.xls)
RewriteRule ^(.*)$ /index.php/$1
那你改他做什么呢? 我是根目录下加个文件,或者目录,就可以直接访问,而不用再在上面增加才可以访问 去掉 RewriteBase 试试
页:
[1]