I have this line in my htaccess file in the root of my domain:
ErrorDocument 404 /Page_Not_Found.html
which works fine for a page not found relative to the root, say:
www. domain.co.uk/rubbish.html
but it does not work if the page not found is:
www. domain.co.uk/acatalog/rubbish.html
In this case it just redirects automatically to my root domain homepage.
I have a copy of the error page in both the root and acatalog.
This is with 1and1 BusPro.
Any ideas how I can make this work please?
EDIT: Update - even after removinbg the htaccess file completely then an acatalog page not found still redirects to my root homepage. Is it something to do with 1and1??
EDIT2: Update - sorted this, it's now ok - I had another copy of htaccess in the acatalog folder.
ErrorDocument 404 /Page_Not_Found.html
which works fine for a page not found relative to the root, say:
www. domain.co.uk/rubbish.html
but it does not work if the page not found is:
www. domain.co.uk/acatalog/rubbish.html
In this case it just redirects automatically to my root domain homepage.
I have a copy of the error page in both the root and acatalog.
This is with 1and1 BusPro.
Any ideas how I can make this work please?
EDIT: Update - even after removinbg the htaccess file completely then an acatalog page not found still redirects to my root homepage. Is it something to do with 1and1??
EDIT2: Update - sorted this, it's now ok - I had another copy of htaccess in the acatalog folder.
Comment