• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 331
  • Last Modified:

Problems with global.asax and search friendly urls

I am having problems to include search friendly urls;

In my global.asax I call a function on "Application_BeginRequest", in this function I reveal the correct id based on the URL which is requested, i.e.: http://xxxx.com/products/bike becomes http://xxxx.com/product.aspx?productid=13 so I can do a "Context.RewritePath"

When I test the website locally everything works fine. When I publish the website to our webserver the first thing that happend was he coulden't find the dir : products/bike.
I thought I could solve this problem with a new 404.aspx which I defined in IIS.  But it seems that the 404.aspx ain't executing the global.asax

Does anyone have any suggestions for this problem?

0
madpat
Asked:
madpat
  • 3
  • 2
1 Solution
 
gregoryyoungCommented:

The problem has to do with your IIS configuration. You have to set all verbs to ASP.NET ... http://msdn.microsoft.com/msdnmag/issues/02/08/HTTPFilters/ discusses this issue and how to fix it in asp.net

Cheers,

Greg Young
MVP - C#
http://geekswithblogs.net/gyoung
0
 
madpatAuthor Commented:
Thanx for the information, I will take a further look within this documentation.

(I found it rather strange that it worked locally (without 404 catch) and not on IIS.)
0
 
gregoryyoungCommented:
I have full instructions here in a word document from a previous project (including pictures etc) if you drop me a line through my blog I can reply with it.
0
 
madpatAuthor Commented:
Cheers, just mailed you through your blog.
0
 
gregoryyoungCommented:
You should have it, its the same info .. just step by step.
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now