404没有完成,阻碍了下一个请求

时间:2017-04-04 17:49:40

标签: .htaccess magento http-status-code-404

我有一个使用magento创建的电子商务网站。每当发现404未找到错误时,站点的加载就会停止(或者更确切地说,它会继续尝试获取该特定资源)并且它会冻结。一段时间内无法访问其他链接或页面。我可以在大约几分钟后(大约5分钟)浏览网站。下面是firebug'net'面板的截图。第一个加载时。接下来5分钟后。

firebug loading

firebug loading complete

我的htaccess如下所示,如果这与它有关。

            DirectoryIndex index.php

            <IfModule mod_php5.c>
            php_value memory_limit 8M
            php_value max_execution_time 180
            php_flag magic_quotes_gpc off
            php_flag session.auto_start off
            php_flag suhosin.session.cryptua off
            php_flag zend.ze1_compatibility_mode Off
            </IfModule>

            <IfModule mod_security.c>
            SecFilterEngine Off
            SecFilterScanPOST Off
            </IfModule>

            <IfModule mod_ssl.c>
            SSLOptions StdEnvVars
            </IfModule>

            <IfModule mod_rewrite.c>
            Options +FollowSymLinks
            RewriteEngine on
            RewriteBase /
            RewriteRule ^api/rest api.php?type=rest [QSA,L]
            RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
            RewriteCond %{REQUEST_METHOD} ^TRAC[EK]
            RewriteRule .* - [L,R=405]
            RewriteCond %{REQUEST_FILENAME} !-f
            RewriteCond %{REQUEST_FILENAME} !-d
            RewriteCond %{REQUEST_FILENAME} !-l
            RewriteRule .* index.php [L]
            </IfModule>

            AddDefaultCharset Off

            <IfModule mod_expires.c>
            ExpiresDefault "access plus 1 year"
            </IfModule>

            Order allow,deny
            Allow from all

            <Files RELEASE_NOTES.txt>
            order allow,deny
            deny from all
            </Files>

            ErrorDocument 404 /404.html
            #SetEnv MAGE_IS_DEVELOPER_MODE "true"

仅当在页面中找不到资源时才会发生这种情况。我很困惑在哪里寻找解决方案。感谢您的关注。主持人,如果需要,请您重新标注标题。

1 个答案:

答案 0 :(得分:0)

404页面模板丢失了一些图像。我删除了它并开始正确加载。