I created a custom 404 page (Catalog v9.04) which returns soft 404's: the page displays correctly, but gives a redirect which results in a 200 response code.
Apparently, this is because I used an absolute/full URL in the .htaccess file:
ErrorDocument 404 "DomainName"/acatalog/404error_Page_Not_Found.html
and I should have used a relative URL:
ErrorDocument 404 /404error_Page_Not_Found.html
However, changing the URL to a relative one corrects the response code and gives a genuine 404 but the page no longer displays properly: no graphics, no sidebars, only text links without buttons etc. (similar to pages that deliver secure and un-secure content?) I've tried a relative URL with and without /acatalog with identical results.
Can anyone advise on how to correct the display issues please?
Any help or advice appreciated as always.
For the time being I've left it returning the 200 response so at least it looks ok to customers, but if you need to see an example of what I mean I can change the .htaccess.
Apparently, this is because I used an absolute/full URL in the .htaccess file:
ErrorDocument 404 "DomainName"/acatalog/404error_Page_Not_Found.html
and I should have used a relative URL:
ErrorDocument 404 /404error_Page_Not_Found.html
However, changing the URL to a relative one corrects the response code and gives a genuine 404 but the page no longer displays properly: no graphics, no sidebars, only text links without buttons etc. (similar to pages that deliver secure and un-secure content?) I've tried a relative URL with and without /acatalog with identical results.
Can anyone advise on how to correct the display issues please?
Any help or advice appreciated as always.
For the time being I've left it returning the 200 response so at least it looks ok to customers, but if you need to see an example of what I mean I can change the .htaccess.
Comment