tags:

views:

509

answers:

4

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.

+1  A: 

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

John Sheehan
agree. this is the only way
Darren Kopp
A: 

Never tried it, but would URL Rewriting work?

http://www.aspnettutorials.com/tutorials/network/web-URL-aspnet2-csharp.aspx

aaronjensen
No. Without access to IIS, he can't map non-ASP.net requests (extension-less requests are not handled by ASP.NET) to be handled by the Global.asax.
John Sheehan
A: 

This question has already been asked.

GateKiller
This is not a dupe of that. Re-read it
John Sheehan
You should edit the title of this one to 'Custom URL Extensions/Routing in ASP.NET without access to IIS'
John Sheehan
This is not the same question.
daughtkom
A: 

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