PHP版本从5.3更改为5.4(5.5)后,.htaccess规则无效

时间:2017-05-19 14:39:11

标签: php .htaccess mod-rewrite

当我将PHP版本从5.3更改为5.4或5.5时,.htaccess文件中的规则无效。

哪些规则不兼容?我很高兴有任何意见,谢谢!

--- htaccess的:

Options +FollowSymlinks
DirectoryIndex index.php
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-s
RewriteCond %{REQUEST_URI} !/(assets/|404/|png/|js/|jpg|clearfavour)(.*)$
RewriteCond %{SCRIPT_FILENAME} !/(assets/|404/|server/)(.*)$
RewriteRule ^(.*)$ /index.php?params=$1 [L,QSA]
RewriteCond %{HTTP_HOST} ^www\.(.*) [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]

0 个答案:

没有答案