httpHandlers path mapping error

  • Thread starter Thread starter royston
  • Start date Start date
R

royston

Hi,

I have wrote a httpHandler module which rewrite the users url.

In Web.Config
<httpHandlers>
<add verb="*" path="/*/*.aspx"
type="Sample.URL.PageHandler,Sample.URLManager"/>
</httpHandlers>

For example
http://localhost/royston/index.aspx is mapped to
http://localhost/index.aspx?name=royston

The module has been working fine. However, for this particular url
below, the httpHandler path fail to map the url and never handle the
url rewrite at all...

http://localhost/aux/index.aspx --> The resource cannot be
found.

Is "aux" a reserve word or something? I tried to debug but it seems
that the handler is never run for that particular url... Any suggestion
or advice is appreciated.

Regards,
Royston
 
I'll look more into the aux thing..don't know of anything off hand. Seems
odd.

This does seem like an HttpModule would be better than an httpHandler
though - since you are hooking into EVERY request.

I'd set up an HttpModule and hook into the BeginRequest event...

Karl
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top