IIS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationIIS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 26th, 2005, 10:08 AM
dizzle dizzle is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Posts: 77 dizzle User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 h 33 m 6 sec
Reputation Power: 4
Custom 404 Errors - Persisting original page's query string

Hey all,
On my local setup of IIS, I have a single application's Custom Errors set so 404's go to an aspx page. When the 404 kicks in, the URL in the browser stays the same as the non-existant URL, and the 404 page shows. I am able to get the query string of the non-existant requested URL, and use it to find related pages.
Now, when I bring this live, I have the entire website's Custom Error 404 set. When the 404 kicks in, it redirects to the 404 page with query string "404;http://blahblah.com/page.ext", cutting off the original URL's query string. This kills my ability to offer related pages based on the query string.
Does anyone know how I can fix this? Works perfect locally, doesn't work remotely. Thanks in advance!

Reply With Quote
  #2  
Old October 26th, 2005, 11:51 AM
chuck59 chuck59 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2005
Location: Karachi
Posts: 6 chuck59 User rank is Corporal (100 - 500 Reputation Level)chuck59 User rank is Corporal (100 - 500 Reputation Level)chuck59 User rank is Corporal (100 - 500 Reputation Level)chuck59 User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 1 h 7 m 3 sec
Reputation Power: 0
Are you and your host using same version of IIS?

Reply With Quote
  #3  
Old October 26th, 2005, 01:28 PM
dizzle dizzle is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Posts: 77 dizzle User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 h 33 m 6 sec
Reputation Power: 4
Quote:
Originally Posted by chuck59
Are you and your host using same version of IIS?


Good question. My local version is 5.1, the remote IIS app is setup slightly different (no About menu item) - the help file says 5.0.

Reply With Quote
  #4  
Old October 28th, 2005, 12:18 AM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 12th Plane (10500 - 10999 posts)
 
Join Date: Jun 2003
Posts: 10,959 Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 15 h 59 m 14 sec
Reputation Power: 802
Have you asked your host about this?
__________________
======
Doug G
======
I didn't attend the funeral, but I sent a nice letter saying I approved
of it. --Mark Twain

Reply With Quote
  #5  
Old October 28th, 2005, 07:45 AM
dizzle dizzle is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Posts: 77 dizzle User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 h 33 m 6 sec
Reputation Power: 4
We host or own. I would think that if the query string were attached, it would either hide the new URL (301 redirect, I think?) or convert the original URL to be URLEncoded so the "?" wouldn't appear twice. Also, HTTP_REFERER does not give the original URL. This is driving us crazy, please help!

Reply With Quote
  #6  
Old November 3rd, 2005, 06:53 AM
dizzle dizzle is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Posts: 77 dizzle User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 h 33 m 6 sec
Reputation Power: 4
Still unable to find a solution to this... I read about a user on another forum with the same problem, and they concluded that it was not possible, but I fail to believe that!

Reply With Quote
  #7  
Old November 3rd, 2005, 12:21 PM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 12th Plane (10500 - 10999 posts)
 
Join Date: Jun 2003
Posts: 10,959 Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 15 h 59 m 14 sec
Reputation Power: 802
Sorry I can't offer any help. Perhaps some site like iisfaq.com can help, or some site from this google search

http://www.google.com/search?q=iis+...:en-US:official

Reply With Quote
  #8  
Old November 10th, 2005, 07:05 AM
dizzle dizzle is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Posts: 77 dizzle User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 h 33 m 6 sec
Reputation Power: 4
Quote:
Originally Posted by Doug G
Sorry I can't offer any help. Perhaps some site like iisfaq.com can help, or some site from this google search

http://www.google.com/search?q=iis+...:en-US:official


Thanks Doug, from going to iisfaq.com I found out that this "problem" is more of a "feature" that has to be specified per file extension. The main file extension I was using as ASP, and that apparently has it's own 404 handling, so turning it on in IIS for .ASP files solved the problem. Thanks!

Reply With Quote
  #9  
Old November 10th, 2005, 07:00 PM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 12th Plane (10500 - 10999 posts)
 
Join Date: Jun 2003
Posts: 10,959 Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 15 h 59 m 14 sec
Reputation Power: 802
Hey, I'm glad you got it sorted out!

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationIIS > Custom 404 Errors - Persisting original page's query string


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT