iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-18-2005, 11:24 PM
ADAM Web Design's Avatar
WebProWorld 1,000+ Club
 
Join Date: Dec 2003
Location: Toronto, Ontario, Canada
Posts: 2,181
ADAM Web Design RepRank 1
Default ASP and headers question

Here's the situation. I've got a custom 404 in ASP that is used to direct people to the correct page and correct product info based on information from the incorrect URL.

http://216.89.218.233/kastlenew/Mant...Series_739.htm is an example.

The problem is that the raw logs get /404.asp written to them instead of the "incorrect" URL. I'd like the latter, just so I don't have to keep building custom ways to view how many times users have viewed products/pages.

The problem is that I've tried adding a URL header, a PATH_INFO header, and a Location header using Response.AddHeader, and none have worked. The URL stays the same.

Is there anything else I can try? Thanks.
Reply With Quote
  #2 (permalink)  
Old 04-19-2005, 06:43 AM
paulhiles's Avatar
WebProWorld 1,000+ Club
 
Join Date: Jul 2003
Location: UK
Posts: 2,089
paulhiles RepRank 0
Default Testing your custom 404 error page

Hi Adam,

I just tried entering a bogus page ("testing404.asp") and the browser produced the following URL string:

http://216.89.218.233/kastlenew/404....testing404.asp

I would've thought this would show up in your logs. The solution may be in your site settings in IIS, you can control the specific fields you wish to log. Do you have stats setup on the site at all?

Paul

PS. You mean the message displayed... announcing "an email has been sent to the web development team.." hasn't really been sent? ;o)
Reply With Quote
  #3 (permalink)  
Old 04-19-2005, 12:03 PM
ADAM Web Design's Avatar
WebProWorld 1,000+ Club
 
Join Date: Dec 2003
Location: Toronto, Ontario, Canada
Posts: 2,181
ADAM Web Design RepRank 1
Default

That does show up in my logs, yes. And that's exactly how it shows up in my logs.

The problem is that it reports /404.asp in Live Stats.

I don't mind it so much when the link is actually a dead link, but most of the time it's not, and when it is it's usually because a product has been removed from the database.

That's why I wanted to mod the header and subsequently the raw log, in a nutshell. The URL info would provide a little marketing info to my client as far as what products people are actually looking at.
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum

Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 05:02 PM.



Search Engine Optimization by vBSEO 3.3.0