Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# mrt 2/28/2007 4:37 PM
Hi

Does anyone know of an easy way to change or remove the .aspx extension on the friendly url? i'd rather not have it at all.

Thanks
Thom
# martijnb 3/1/2007 2:29 AM
You'll need an ISAPI filter for this (or IIS 7.0).
But then still, Cuyahoga renders the .aspx extension in the links.
Maybe in the future we should make this configurable, especially since IIS 7 supports rewriting natively.
# mrt 3/1/2007 10:30 AM
in iis6 you can add an application mapping with the extension ".*", this will pass all requests through the asp.net engine. I guess the .aspx extension won't be in one place in the code then? :)
# mrt 3/1/2007 12:16 PM
i had a go at this and got it to look up the pages fine, the problem is that it expects to split the url on .aspx to get the parameters to pass into modules like articles. Without .aspx theres no easy way to divide it.
# martijnb 3/2/2007 8:41 AM
Ah, that's right. Didn't think of that. If we want to support this, we also have to customize the url rewriter.
# tigermain 7/18/2007 10:21 AM
Watch this space guys I am going to be attempting this taking account for webservices and ajax.net (which are known issues with these hacks) and will give a full run down once completed
# tigermain 7/18/2007 10:22 AM
mrti had a go at this and got it to look up the pages fine, the problem is that it expects to split the url on .aspx to get the parameters to pass into modules like articles. Without .aspx theres no easy way to divide it.

I don't see why you can't just base the rules on the last file/directory in the path plenty of other rewriters do, as I said I'm going to have a crack at it