2

I have a need to use extensionless URLs. I do not have access to IIS (6.0) so I cannot map requests to ASP.NET and handle with a HttpHandler/HttpModule. However, I can set a custom 404 page via web host control panel.

My current plan is to perform necessary logic in the custom 404 page, but it "feels wrong". Are there any recommendations that I am missing?

Edited: Added "Without IIS Access" to the title since someone thought this was a repeat question.

Scott Isaacs
  • 1,168
  • 7
  • 16

2 Answers2

1

Without access to IIS, that would be your only option.

John Sheehan
  • 77,456
  • 30
  • 160
  • 194
0

The 404 page really is your only option if you can't map the requests. I've seen several blog packages that do this to enable magic URLs like .../archive/YYYY/MM/DD and such - there's no such page, so it hits the 404 page and the 404 page does the redirection.

Travis Illig
  • 23,195
  • 2
  • 62
  • 85