can't find files on server

Discussion in 'Apache' started by SimThePhpCoder, Aug 24, 2008.

  1. #1
    ErrorDocument 404 /index.php
    DirectoryIndex country.php

    RewriteEngine On
    RewriteCond %{HTTP_HOST} !^www.somedomain.com$ [NC]
    RewriteRule ^(.*)$ http://www.somedomain.com/$1 [R,L]

    RewriteRule ^free-live-tv$ index.php?app=tv [L]
    RewriteRule ^free-live-tv/categories/(.*)$ index.php?app=tv&action=cats&id=$1 [L]



    when I try to go to www.somedomain.com/arcade.php the server says its not found? How can I resolve this?
     
    SimThePhpCoder, Aug 24, 2008 IP
  2. kailash

    kailash Well-Known Member

    Messages:
    1,248
    Likes Received:
    42
    Best Answers:
    0
    Trophy Points:
    190
    #2
    Are you sure it is 404 error not others like 403, 500 etc. If mod_rewrite is on and working fine on the server you should redirect to index.php on 404 error.

    Kailash
     
    kailash, Aug 26, 2008 IP
  3. SimThePhpCoder

    SimThePhpCoder Well-Known Member

    Messages:
    949
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    108
    #3
    http 500 error. whats that mean?
     
    SimThePhpCoder, Aug 26, 2008 IP
  4. kailash

    kailash Well-Known Member

    Messages:
    1,248
    Likes Received:
    42
    Best Answers:
    0
    Trophy Points:
    190
    #4
    Status code 500 means Internal server error. Generally it gives this error due to invalid line in .htaccess. You can check the error logs of your domain to find the root cause of this error.

    Kailash
     
    kailash, Aug 26, 2008 IP