FallbackResource calls net :: ERR_INCOMPLETE_CHUNKED_ENCODING

When I use .htaccess , which contains only this line:

 FallbackResource index.php 

I get this error only in Chrome:

  net::ERR_INCOMPLETE_CHUNKED_ENCODING 

The error appears only when accessing the root directory in which .htaccess is located.

IE, if .htacess is located at www.mysite.org/admin , then the error only appears when entering this exact URL in the navigation bar.

If I go to www.mysite.org/admin/index.php or www.mysite.org/admin/some-user-friendly-url , there will be no error.

The error is actually annoying, as it delays page loading by a few seconds and causes the page to not execute any JavaScript that should happen when the page loads.

Like many others with this error, this only happens in Chrome. Decisions of other posts in my particular case did not help.

+6
source share
1 answer

Add the DirectoryIndex directive to the .htaccess file before FallbackResource . This fixed the problem for me.

 DirectoryIndex index.php 
+5
source

Source: https://habr.com/ru/post/972519/


All Articles