LiteSpeed Support Forums

LiteSpeed Support Forums (http://www.litespeedtech.com/support/forum/index.php)
-   Bug Reports (http://www.litespeedtech.com/support/forum/forumdisplay.php?f=9)
-   -   random 404 errors on exiting pages (http://www.litespeedtech.com/support/forum/showthread.php?t=6053)

bangsters 06-30-2012 09:39 AM

random 404 errors on exiting pages
 
Hi.

Something is really bugging my clients. When browsing pages, form time to time the 404 error shows up on existing pages. After a 404 shows up, a press of the refresh button loads the page just fine.

It's just annoying as when someone is browsing, the 404 just pops up, and some might think that the server is down when it's not.

Anyone else experiencing the same issue? We're running the latest version of litespeed, using cloudlinux for our OS.

Please advice.

NiteWave 06-30-2012 08:49 PM

please check .htaccess, if there is line like
RewriteRule . what-ever-string [L,...

then change to
RewriteRule .* what-ever-string [L,...

to see if any difference.

probably one of the causes, need test and feedback from real word websites.

bangsters 06-30-2012 09:43 PM

Hi.

We don't have any rules that end in a dot in .htaccess. Also, this happens to our clients and us as well, randomly. Below is the htaccess for one of our sites that experience random 404 as well.

RewriteEngine On

# Announcements
RewriteRule ^announcements/([0-9]+)/[a-z0-9_-]+\.html$ /folder/announcements.php?id=$1 [L,NC]
RewriteRule ^announcements$ ./announcements.php [L,NC]

# Downloads
RewriteRule ^downloads/([0-9]+)/([^/]*)$ /folder/downloads.php?action=displaycat&catid=$1 [L,NC]
RewriteRule ^downloads$ ./downloads.php [L,NC]

# Knowledgebase
RewriteRule ^knowledgebase/([0-9]+)/[a-z0-9_-]+\.html$ /folder/knowledgebase.php?action=displayarticle&id=$1 [L,NC]
RewriteRule ^knowledgebase/([0-9]+)/([^/]*)$ ./knowledgebase.php?action=displaycat&catid=$1 [L,NC]
RewriteRule ^knowledgebase$ ./knowledgebase.php [L,NC]

NiteWave 06-30-2012 10:13 PM

can you give an example URL which caused 404 error?
I think you can get it from access log.


All times are GMT -7. The time now is 07:34 PM.