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 1653
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.te ranews.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.te ranews.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?
Cheers
--
William Tasso - http://WilliamTasso.com
|
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. Every time I add a bookmarked
page, I have to do it five times. Is there a product or
combination of products that will synchronize my bookmarks
and generate a HTML document that I can upload to my
website? I am using Windows 2000.
|
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 after
successful login and shows welcome user message and his
shopping cart link.
|
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 try-catch?
Try
Response.Redirect(strPage)
Catch ex1 As Threading.ThreadAbortException
ex1 = ex1
'Cancel Respone here
|
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 the basket. Sometimes the contents is
to long the the basket is not visible ( the page is ti long). I have created
a bookmark at the basket location of the page <a title="basket"/> and want
to redirect to this bookmark when clicing show basket. I...
| |
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 navigation he clikcs the home, he should not go
the intro page he has to reidrect to main page.
The cookie has to be writen in the intro page or main page. if in intro page
how to redirect to the main page without loading the intro page.
|
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 to win2003 using SQL 2003
I get the above error when my asp page does teh line:
Rs.absolutepage = intCurrentPage
I tested teh value of intCurrent page and teh value is 1.
|
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 figure out how to
extract all the urls. Has anybody got a couple of longer examples using
Beautiful Soup I could play around with?
Thanks,
Martin.
|
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 provided (noos.fr) had
trouble with ftp, so that access to my web pages became very
problematic, mostly impossible. After 2 months and many unanswered
complaints, I decided to buy my own domain, subscribe with a different
host and transfer all my files...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |