Suddenly, some pages are not loading (have not touched them)

Permalink
For some odd reason, some of my pages are not loading and I'm getting the following error messages:

Firefox: The connection to the server was reset while the page was loading.

Chrome: Error 324 (net::ERR_EMPTY_RESPONSE): The server closed the connection without sending any data.

This seems like a never-ending battle to get C5 stabilized. It's either slow or it's broken and I have no idea why. Fast one day, slow the next, broken a month later. I have not done anything to this site since the end of July at which time it was working fine.

I am running 5.5.2.1.

Is this issue documented anywhere? I only found one post in the forums but it was about upgrading. I did a clean install of 5.5.2.1 so it wasn't an upgrade problem.

 
zoinks replied on at Permalink Reply
Also, I can no longer access Versions. When I click Edit > Versions, I get an empty panel with a spinning loader that never stops spinning. I have to refresh the page.
zoinks replied on at Permalink Best Answer Reply
SOLUTION

1. Add this to the .htaccess file:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /~username/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME}/index.html !-f
RewriteCond %{REQUEST_FILENAME}/index.php !-f
RewriteRule . index.php [L]
</IfModule>


2. Add this to the config/site.php file:

define('URL_REWRITING_ALL', true);



EXPLANATION:
This issue appeared out of the blue for no apparent reason on Hostgator. It may have something to do with the fact that this site is in beta mode and using a temporary URL such as 12.34.56/~username ...that ~username is referenced in the above rewrite code for the HTACCESS file.

This was not documented anywhere on the web and took Hostgator Support about 2 hours to figure it out. Thankfully, they now support C5 since it is a one-click install on their platform now.

When domain goes live, issue may come back since the above rewrite is for the temporary URL.