This is an example of an error in out log file:
File does not exist: /var/www/website/female, referer: http://www.example.com/female/dresses/A-Dress-Black
/female
does not physically 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 even though the site works fine. Has anyone encountered this before?
&
in ITEM rule:store_focus.php?sex=$1catName=
should bestore_focus.php?sex=$1&catName=
2) Individual pages rewrite rules have missing/
before?
:^Profile?$
should be^Profile/?$
– LazyOne Jul 9 '11 at 10:16