"File does not exist" in apache error log.

Posted by Samuurai on Server Fault See other posts from Server Fault or by Samuurai
Published on 2010-04-14T10:16:02Z Indexed on 2010/04/14 10:23 UTC
Read the original article Hit count: 521

Filed under:
|
|

Hi,

This is an example of an error in out log file:

 File does not exist: /var/www/website/female, referer: http://www.website.com/female/dresses/A-Dress-Black

"/female" doesn't exist, because we use friendly urls via our .htaccess file which looks like this:

RewriteEngine On # Turn on the rewriting engine
RewriteBase /
RewriteCond %{http_host} !^www.website.com$ [nc]
RewriteRule ^(.*)$ http://www.website.com/$1 [r=301,nc,L]
RewriteRule ^News/?$ news.php [NC,L]
RewriteRule ^About/?$ about.php [NC,L]
RewriteRule ^Contact/?$ contact.php [NC,L]
RewriteRule ^Sign-In/Create-Account?$ sign_up_in.php [NC,L]
RewriteRule ^Logout?$ sign_up_in.php?l=1 [NC,L]
RewriteRule ^Your-Bag?$ your_bag.php [NC,L]
RewriteRule ^Help?$ help.php [NC,L]
RewriteRule ^Profile?$ profile.php [NC,L]
RewriteRule ^Create-Profile?$ profile_create.php [NC,L]
# ITEM
RewriteRule ^([A-Za-z-]+)/([A-Za-z-]+)/([A-Za-z0-9-]+)/?$ store_focus.php?sex=$1catName=$2&permalink=$3 [NC,L]
# PAGE
RewriteRule ^([A-Za-z-]+)/([A-Za-z-]+)/page/([0-9]+)/?$ store.php?sex=$1&catName=$2&page=$3 [NC,L]
# CATEGORY
RewriteRule ^([A-Za-z-]+)/([A-Za-z-]+)/?$ store.php?sex=$1&catName=$2 [NC,L]
# SEX
RewriteRule ^([A-Za-z-]+)/?$ store.php?sex=$1 [NC,L]

Every request for a page results in an error. Has anyone encountered this before?

Thanks!

Beren

© Server Fault or respective owner

Related posts about apache

Related posts about mod-rewrite