Forum Moderators: phranque
Thanks
Janine
I faced a similar issue recently when our site was completely redesigned. There was no way we wanted to keep the old file structure, yet there were thousands of linkers and SEs with links to our old pages (and some SEs still have those old pages -- 5 months after our relaunch). I didn't want to clutter my site with 'ghost pages,' either.
So I put some server-side script in my default error page that checks the query string against a list of the URLs of our old pages and, redirects the user to the new version of that page (if there is one), else it just loads the error page.
I use .asp -- Request.ServerVariables("QUERY_STRING") is the way you get the query string -- but there are probably other server-side scripting tricks that could do this.
Thanks again everyone
Janine