Groups | Blog | Home
all groups > asp.net > january 2004 >

asp.net : redirect old bookmarks to main page


Steve C. Orr [MVP, MCSD]
1/26/2004 3:36:57 PM
You can configure this in IIS.
You can create a custom 404 page that redirects to any page you desire.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net


[quoted text, click to view]

Showjumper
1/26/2004 5:53:26 PM
You can do this via the global.asax file or better yet, create a custom
errors page and specify the page in the web.config page. In the codebehind
for the custom error page you can find the old url and then redirect to the
new url. As a live example visit
http://www.riderdesign.com/tutorials/default.aspx and you will see it send
you to a new page. The error page handles the redirect.
[quoted text, click to view]

Adie
1/26/2004 11:22:20 PM
Hi, Ive recently updated our companies site and have been looking at
the server logs and it appears a bunch of people are entering the site
at specific pages that no longer exist.

I wonder if there was a way of looking at http requests for the site
and if they are not for an existing page then sending them to
index.aspx?

I'm a bit of a ASP.NET newb, otherwise i'd dig in, but I'm worried
that everyone is gonna think our sites down by the time I figure out
the code.

Thanks

Regards,
Adie
1/26/2004 11:35:42 PM
[quoted text, click to view]

Unfortunately the web server belongs o a hosting company.
I'll email them, but I don't think they'll play ball.

AddThis Social Bookmark Button