Forum Moderators: phranque
I have used htaccess file to redirect unfound pages like
www.mywebsite.com/#*$!/yyy
to a custom page which will interpret the #*$! and yy as parameters to send to php
My htaccess just says:
ErrorDocument 404 /index.php
This works fine to send all unfound pages back to home (index.php) page... in FireFox, etc.
But not it IE6.
IE6 continues to display "The page cannot be found".
Can anyone explain what I need to do to get IE to display what Apache is (according to FF, Safari, etc.) serving up?
Many thanks!
Alll this happens just with the redirection of pages - before any php run... so I don't think php should be relevant, but FYI, here is what phpinfo says:
_SERVER["ORIG_SCRIPT_FILENAME"]/dh/cgi-system/php5.cgi
Note that a better approach for handling missing pages may be to serve a page explaining that the requested page is missing, and provide a link to your site map, search page, and/or index page. This prevents the missing pages from being seen as doorway pages or duplicate content, either of which may affect your pages' rankings, and is a better approach to site usability than a sudden and unexpected redirect to the home page.
Also, you may wish to consider returning a 410-Gone response to intentionally-removed page requests if the requests are made with HTTP/1.1. HTTP/1.1 added support for this response code, enabling you to declare that the page was intentionally removed (and won't be back), as opposed to the ambiguous 404-Not Found response, which may mean either that the page has been removed or that a server problem is causing it to be temporarily inaccessible.
Jim