random 404 errors on exiting pages

Discussion in 'Bug Reports' started by bangsters, Jun 30, 2012.

  1. bangsters

    bangsters New Member

    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.
  2. NiteWave

    NiteWave Administrator

    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.
  3. bangsters

    bangsters New Member

    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]
  4. NiteWave

    NiteWave Administrator

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

Share This Page