473,321 Members | 1,669 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,321 software developers and data experts.

redirect old bookmarks to main page

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 -- who should have thought of this...
Nov 18 '05 #1
3 1636
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
"Adie" <ar*******@h-o-t-m-a-i-l.com> wrote in message
news:7b******************************@news.teranew s.com...
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 -- who should have thought of this...

Nov 18 '05 #2
Steve C. Orr [MVP, MCSD] wrote:
Adie Wrote:

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.

You can configure this in IIS.
You can create a custom 404 page that redirects to any page you desire.


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

Any other thoughts?
Nov 18 '05 #3
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.
"Adie" <ar*******@h-o-t-m-a-i-l.com> wrote in message
news:b6******************************@news.teranew s.com...
Steve C. Orr [MVP, MCSD] wrote:
Adie Wrote:

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.

You can configure this in IIS.
You can create a custom 404 page that redirects to any page you desire.


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

Any other thoughts?

Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: William Tasso | last post by:
Greetings one and all I've just taken over a site and I'm changing the files from .htm to .asp. What's considered the best practice method of indicating the source of the new document? ...
13
by: NoSpamThankYouMam | last post by:
I am looking for a product that I am not sure exists. I have bookmarks to webpages in Internet Explorer, Mozilla Firefox, Opera, Netscape Navigator, and on a "Favorite Links" page on my website....
3
by: Tom | last post by:
Hi, I have an index.aspx page which includes top.aspx, left.aspx, main.aspx and bottom.aspx. In the left.aspx, there is a login web control - login.ascx. It keeps session of username and role...
13
by: Tim | last post by:
Hello, Is there a way to "cancel" a response.Redirect? For example, in the code below, could I insert anything in the Catch statement that would cancel the redirect and resume flow after the...
1
by: Anders K. Jacobsen [DK] | last post by:
Hi. I have a basket which i located a the bottom of the page. The basket can be shown / hidden by pushing a bottom a the top. This posts back to server and i hide/show a usercontrol containing...
1
by: Umesha | last post by:
Hello pals, I have one problem, how to redirect the user from intro page to the main page, once user visits the site. If user visitng first time the intro page has to be shown, then further...
9
by: Johnfli | last post by:
ADODB.Recordset error '800a0cb3' Current Recordset does not support bookmarks. This may be a limitation of the provider or of the selected cursortype. I am moving my webserver from NT4 using SQL...
15
by: Francach | last post by:
Hi, I'm trying to use the Beautiful Soup package to parse through the "bookmarks.html" file which Firefox exports all your bookmarks into. I've been struggling with the documentation trying to...
2
by: =?ISO-8859-1?Q?Fran=E7ois_de_Dardel?= | last post by:
I am not sure if this is the proper forum, but I always found very helpful information here and I would like to have the advice of experts. Just before new year (end Dec 2006), my internet...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.