mod_rewrite达到的最大内部重定向数

时间:2013-12-18 06:13:54

标签: apache .htaccess redirect

我的网站工作正常,直到昨天。

我收到了Apache 500内部服务器错误:mod_rewrite:达到内部重定向的最大数量。假设配置错误。如有必要,请使用“RewriteOptions MaxRedirects”增加限制。

问题可能在于文件.htaccess。

完整.htaccess there

是的,有人能帮帮我吗?

1 个答案:

答案 0 :(得分:1)

将您的2 .gz规则修改为:

RewriteCond %{HTTP:Accept-encoding} gzip
RewriteCond %{REQUEST_FILENAME}\.gz -s
RewriteRule ^(.*)\.css$ $1\.css\.gz [L]

# Serve gzip compressed JS files if they exist and the client accepts gzip.
RewriteCond %{HTTP:Accept-encoding} gzip
RewriteCond %{REQUEST_FILENAME}\.gz -s
RewriteRule ^(.*)\.js$ $1\.js\.gz [L]
相关问题