473,473 Members | 1,707 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Missing .asp page (404) and URL displayed in address bar compared to missing .html

2 New Member
Hi everyone.

I have this problem that I am experiencing when I move a certain site from one hosting to another hosting location. This is why I think this problem is not related to ASP code, rather than to IIS settings which are different in one hosting company to another.

I am talking about a site I have that has no pages on it, rather it catches 404 http errors and according to the filename of the missing page, it returns content to browser. Now, on some hosting companies, I see for requested missing .asp pages ONLY (i.e: for missing .html files it works great on all hosting locations) that in the address bar of the browser I see something like:

http://www.site.com/404.asp?404;http...com/sample.asp

when I request the page - http://www.site.com/sample.asp

When I move this site to another hosting company, maybe due to different IIS settings, I see in the address bar this address:

http://www.site.com/sample.asp

which is how it should be.

My question is this: How do I set IIS or change ASP code so that on the hosting locations where the address bar is showing the URL as http://www.site.com/404.asp?404; htt...com/sample.asp for missing http://www.site.com/sample.asp page, I will simply see http://www.site.com/sample.asp as if the page exists on site ??

NOTE that with missing .html pages all is working well on all hosting location/IIS servers.

Thanks for the help!
Sami
Mar 21 '07 #1
0 1324

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Matt | last post by:
I was wondering if someone could explain why I'm receiving this error. It's like a 404 error but I think it might be something else. Basically, I have a page where a user inputs his email...
13
by: teenzbutler | last post by:
I have a 10mb ASP file, which will not load in IE 6.0. I get an HTTP 500 error. When I convert the 10mb file to HTML, it loads fine. Is there a limitation on file size? If so, is there a tag I...
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. ...
5
by: Yvon Kephren | last post by:
Hey, I have a javascript problem and I can think of two solutions. First of all the problem. I have a script that dynamically loads pages in iframes on the fly. Sometimes it is possible that these...
5
by: VB Programmer | last post by:
Here's the quick situation: 1. Using VS.NET I create 1 fully functioning aspx page, with code behind. (Simple webform: It has a few text boxes, 1 hyperlink, 2 and buttons.) 2. I uploaded it to...
0
by: Chris Carter | last post by:
Hi, I created this HttpHandler, very simple: using System; using System.Web; namespace HttpHandlerTest { public class HelloWorldHandler : IHttpHandler
15
by: dee | last post by:
Hi, I'm curious why MS decided to have Transfer hide the target page's url invisible? Any guesses ? Thanks. Dee.
3
by: Greg Collins [Microsoft MVP] | last post by:
Okay, this is driving me nuts now. I spent all last night researching newsgroup postings, web articles, etc. Running multiple sites off the same shared hosting service, I want to be able to...
4
by: JB | last post by:
I have found where I can change the page that is displayed for 404 in IIS. Question is - can I use an aspx page? I want to have the page send me an e-mail of the URL of the page they are trying to...
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
Oralloy
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,...
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
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,...
1
isladogs
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...
0
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...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.