Forum Moderators: open
We haven’t located the correct code for redirecting to deal with a move from www.site.com/oldpage.htm to www.site.com/newpage.aspx. If you have any “code for dummies” that you could share with me so that I can go this less optimal route (my only option at this point), I’d be grateful for it.
Some options that come to mind are.
Option 1
See if GoDaddy has the ability in its control panel to do file redirects, and use it to redirect it to the new file.
Option 2
If the files ended in aspx or asp originally you can do a simple redirect via global.asax or global.asa file. By binding to the begin request and comparing the url and issuing the proper 301 redirect if it matches one you are replacing.
Option 3. (this is usually the last resort hack)
In GoDaddy's control panel map the 404 static file, to a 404.aspx page, and use it to do the redirects or render a static 404 message.
I will post some sample code a bit later.
Wikipedia article on Meta refresh [en.wikipedia.org].
On the page if the user has meta redirects blocked you also want to put "this page has moved too" and give the link and ask the users to update their bookmarks etc. Doing this will help the search engine spiders find the new pages faster as well.
Ref: How does the Yahoo! Web Crawler handle redirects? [help.yahoo.com]
Jim