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... 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...
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?
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? This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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?
...
|
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....
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
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...
|
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...
|
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...
|
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)...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
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....
|
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
|
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...
| |