Forum Moderators: open
I noticed in my server log that it is a 302 code. Will Google spider the links on this page or is it going away and not bothering with it?
Shawn
If the error page itself returns a successful status, then Google should follow the links. But, the old url will still be indexed forever.
It would be better for the nonexistant page to actually return a 404.
ErrorDocument 404 http://www.yourdomain.com/custom_404.html
ErrorDocument 404 /custom_404.html
See Apache core ErrorDocument [httpd.apache.org], especially the notes at the end.
Jim
ErrorDocument 404 [yourdomain.com...]The problem is that this results in a 302 redirect. The proper form is:
ErrorDocument 404 /custom_404.html
using only a local path.
See Apache core ErrorDocument, especially the notes at the end.Jim
Jim,
I am using a custom error page; I had this on the htaccess:
ErrorDocument 404 /custom_404.html
The problem with that was if the visitor received an 404 for apge that was maybe 2 levels in the images for the custom error were broken(the image links).
So I changed to: ErrorDocument 404 [yourdomain.com...]
I can change back - is there a way to prevent the broken links to the images on the error page?
Shawn
Thanks for your reply - that fix hit me after I made the post. I said to myself "ahh you dummy just make them adsolute links".
I did that and now it is working and the 404 page is getting a code 200. I hope that will allow for google to get links on that page crawled with the pages with the new extensions.
Thanks for everyones help -
Shawn
chiyo's solution sounds alot easier though! (*goes off to delete extra .htaccess files and fix the root one*). :)
Jordan
not sure if i am missing something here but if you have moved your pages from .html/.htm to .shtml wouldn't a permanent redirect solve the problem? as a user i would find this much more user friendly.
Visitors to the site will not see any 404 pages etc...all the menus and links within the site have been chaged to reflect the changes.
Google seems to be the only one stumbling a bit. I suppose if the visitor comes in on a page that is indexed under the old file extension they would get the 404 page, however, they would also be presented with a link to go to the correct page.
I am not sure how I would set up a permanent redirect for each changed page.
For example:
user goes to www.mydomian.com/oldpage.htm and is redirected to www.mydomian.com/oldpage.shtml
How would that be done and have it appear seamless to the user? I am open to all suggestions :)
Shawn