Custom file extensions as ASP.NET in IIS?

Posted by CJLeeds on Server Fault See other posts from Server Fault or by CJLeeds
Published on 2011-03-27T00:17:28Z Indexed on 2012/10/05 21:40 UTC
Read the original article Hit count: 214

Filed under:
|
|
|

I have Apache 2.2, and it's got modaspdotnet installed - the 2.2 version.

I followed the advice at Configuring ASP.NET MVC2 on Apache 2.2 using mod_aspdotnet, and the server works basically very well.

However, I'm trying to create custom extensions (e.g. file.customname, instead of file.aspx), similar to how Apache/PHP/htaccess can handle this. (I think it's mod_rewrite or .htaccess, forgotten which now!)

What would I do to get these custom file types (all serving .NET files) working?

The extensions are given custom names by me, simply for testing purposes

This is a tourism site [a testing one, btw], and it's working OK on localhost for basic pages, but I wanted to know how to do this.

How would I go about this? I've had a look on Google etc. but custom HTTP handlers was all I could really find!

Thanks

© Server Fault or respective owner

Related posts about apache2

Related posts about iis