I have set up my .htaccess file to do a 404 and some 301s.
The 301s are working fine as is the 404 for anything that comes in via www.performancemotorcare.com/acatalog. However on doing a test on a non existant directory or file direct to www.performancemotorcare.com/nonexistantfile then I get a very messed up 404 page.
My code looks like this: (I have taken out all of the 301s)
RewriteEngine On
RewriteCond %{HTTP_HOST} ^performancemotorcare.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.performancemotorcare.com$
ErrorDocument 404 /acatalog/404Page.html
I am assuming the /acatalog/404Page.html is the bit that directs the visitor to the custom 404 page. Has anyone any thoughts on where I might be going wrong here?
Thanks
The 301s are working fine as is the 404 for anything that comes in via www.performancemotorcare.com/acatalog. However on doing a test on a non existant directory or file direct to www.performancemotorcare.com/nonexistantfile then I get a very messed up 404 page.
My code looks like this: (I have taken out all of the 301s)
RewriteEngine On
RewriteCond %{HTTP_HOST} ^performancemotorcare.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.performancemotorcare.com$
ErrorDocument 404 /acatalog/404Page.html
I am assuming the /acatalog/404Page.html is the bit that directs the visitor to the custom 404 page. Has anyone any thoughts on where I might be going wrong here?
Thanks
Comment