random 404 errors on exiting pages
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 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.
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.
RewriteRule ^announcements/([0-9]+)/[a-z0-9_-]+\.html$ /folder/announcements.php?id=$1 [L,NC]
RewriteRule ^announcements$ ./announcements.php [L,NC]
RewriteRule ^downloads/([0-9]+)/([^/]*)$ /folder/downloads.php?action=displaycat&catid=$1 [L,NC]
RewriteRule ^downloads$ ./downloads.php [L,NC]
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]
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.|