Forum Moderators: open
As many have suggested, a neat way to achieve friendly URLs in the ASP.net environment is to leverage IIS's custom 404 page.
I configured my IIS 404 to point to Catalog404.aspx. The code behind for that aspx contains roughly
Response.StatusCode = 200;
path = path.Substring(idxCat);
Context.Items["catPath"] = path;
Server.Transfer("Catalog.aspx");
Don't worry too much about the path stuff, essentially I am taking off the friendly part of the URL and adding it in a variable before transferring to the real Catalog.aspx which then uses that path to match up the page in the DB.
The problem is that I tried to do a Google site map the other day and Google is detecting that I am using a 404 mechanism on the site. As such it tells me I cannot authorise a site map that I place in my site root - some kind of security problem.
My question then is can I get around this or will I have to dump the 404 method in favour of something like HttpContext.RewritePath to get Google site maps working?
I encountered this a few days ago with a client's site. Once the techie guy made sure the custom error routine was sending the right signals, Sitemaps verified the site with no more problems.