471,310 Members | 1,058 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,310 software developers and data experts.

404 and 301 responses

I have a server running iis6 and ISA server for my firewall, I host a large
number of sites
I recently read that Google penalizes you for having multiple domain names
and that www and no www are counted as 2 domain names.
So I though I would fix the problem, Google likes to get a 301 redirect so I
set a up anew web site and using my ISA server I send all requests that are
using the domains I want search engines to use to the correct web sites. I
sent all non www request and all duplicate domain names to the new site and
set up a custom 404 page in IIS.
On the 404 page I get the page info using Request.Url and send the request
to the right page using a 301 redirect. alls fine so far. But some requests
for aspx pages using query strings are handed to asp.net and go to the
asp.net 404 page and not the IIS 404 page. so I set up a custom 404 page for
asp.net. Here is where my problems started. In the asp.net 404 custom page I
am sent a query string like this ?aspxerrorpath=/folder/filename.aspx
with this I have no idea what site it came from and I have lost the query
string.

Is there a way I can get this info, or is there a way I can sent all 404s to
the IIS custom page?

I don't want to set up custom pages on every site this would let me know
what site the request was for but would be very time consuming and still
would not get me the query string.

any ideas?

Sep 5 '08 #1
0 804

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Etienne Labuschagne | last post: by
6 posts views Thread by Grant Edwards | last post: by
2 posts views Thread by Alex Maghen | last post: by
1 post views Thread by mb | last post: by
17 posts views Thread by Lauren Wilson | last post: by
6 posts views Thread by xkenneth | last post: by
reply views Thread by rosydwin | last post: by

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.