|
主机,新一代的,经常出现500错误,代码没改过,我在主机后台把改写关闭再重启就正常了。跟新一代说了也是白说,过一段时间又是500
我的.htaccess
RewriteEngine on
#定义404,500错误页面
ErrorDocument 404 /404.htm
ErrorDocument 500 /404.htm
Options FollowSymLinks
RewriteBase /
RewriteCond %{ENV:REDIRECT_APP_PATH} !^$
RewriteRule ^(.*)$ - [E=APP_PATH:%{ENV:REDIRECT_APP_PATH}]
RewriteCond %{ENV:APP_PATH} ^$
RewriteRule ^(.*)$ - [E=APP_PATH:/$1]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php [L]
RewriteCond $1 !^(index\.php|images|captcha|captcha\.php|robots\.txt|php)#排除的目录和文件类型
|
|