473,398 Members | 2,525 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,398 software developers and data experts.

404 error produces 302 response

Hello.

IIS 4 website with a custom 404 error page WAS working OK, but at some
point it wacked out. In the logs there were no 404 error responses. Instead,
what were recorded were 200(OK) responses with my custom 404 page.

Researching, I found that when a non-existent resource was requested,
instead of directly responding with the 404 error page, the server responded
with 302 (Found / Moved
Temporarily) and a redirection to my custom error page. The redirection URL
had a querystring added, e.g.:
http://mysite.com/my404.asp?404;http...com/nofile.htm

I added Response.Status = "404 Not Found" at the top of the error page to
ensure a 404 response, but the redirection and logging anomaly continued.

I went back to the default .htm error page and behavior returned to normal.

I noticed that my404.asp called a component and wondered if that could be
the problem. So I edited, then specified that page for 404 error. Strangely,
it seemed to work OK initially but quickly reverted to bad behavior. So I
switched back to an HTML error page.

This website is a physically-congruent subset of another website and shared
the asp error page so I though that might be the problem. But when I gave
the other site a different copy of the error page the problem not only
persisted, the second site began exhibiting the same behavior.

All's OK using HTML error files, but I'm curious if anyone has a clue as to
the cause/cure of the bad behavior with ASP.

thanks,
nf


Mar 2 '07 #1
0 1389

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

Similar topics

14
by: sinister | last post by:
I have some CGI programs that spit out error pages when the user enters illegal form input. These custom error pages, while informing the user of errors, are otherwise just standard web pages. ...
1
by: Todd | last post by:
Hi, Using SQL Server 2000 with Windows 2000 Adv Server & Microsoft Access linked table (running stored procedure using ADO as follows: ...
0
by: Darryl | last post by:
I am receiving this error when try to insert a value into the Summary field that is formatted in HTML. I am using ASP to connect to an Access database. The ASP code for the insert statement is as...
1
by: Sean C. | last post by:
Helpful folks, I have recently migrated our test server, which runs Win NT 4, from V7.2 FP11 to V8.1.3. Just about everything works wondefully, except I am having major problems getting the...
2
by: al | last post by:
Greeting, I have this sub in a page that runs a thread to change direction of a page then redirects to a new page(please wait message page)which checks for a global flag and returns to previous...
5
by: snicks | last post by:
I'm trying to exec a program external to my ASP.NET app using the following code. The external app is a VB.NET application. Dim sPPTOut As String sPPTOut = MDEPDirStr + sID + ".ppt" Dim p As...
11
by: CJM | last post by:
I need to be able to determine if the user is a member of a given AD group. I have a method of doing this, but it is not suitable for 64bit OS's, so I need to find an alternative route. I actually...
11
by: Jerry | last post by:
I'm using this code: Dim strName For Each strName in Session.Contents Response.Write strName & " - " & Session.Contents(strName) & "<BR>" Next If I only do a response.write strName, it shows...
11
by: honguin | last post by:
Hi, With the following code, I have created a web request to a url which I am making a HTML POST with the html page request.htm, even though it makes a HTML POST, the StreamReader produces a XML...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
tracyyun
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.