use .html instead of .aspx from niceurl output? Options
Rosko
Posted: Wednesday, August 06, 2008 7:57:14 AM
Rank: Newbie

Joined: 8/5/2008
Posts: 2
Location: US
Hi all, I'm a new Umbraco lover and my first order of business is to use Isapi rewrite and fix the URLs to .html. Right now, this is the only change I want to make to the output from the NiceURL method. Can someone let me know if I'm on the most sensible track to accomplishing my goal?

I was thinking of creating an xsl transform that does a template match on .aspx through a recursive function, and uses xsl to replace .aspx with .html, then I'll use Isapi to rewrite .html back to aspx. Does this sound feasible?

Let me know any thoughts or suggestions you might have on the subject.

Thanks....I love the product so far, it's a lot of fun.
mortenbock
Posted: Wednesday, August 06, 2008 9:10:28 AM

Rank: Addict

Joined: 7/19/2006
Posts: 793
Location: Århus, Denmark
You could do that in navigation macro's and so on, but the place that will pose a problem is links created within the TinyMCE editor. Thos will be rendered with NiceURL at runtime, and the only way (that I know of) to change those links is an httpmodule that runs through the entire output and replaces .aspx with .html

Another way to deal with it could be that the .aspx links stay in the html source, but you make a 301 redirect to the .html url instead, if the .aspx extension is requested.

Morten Bock - Level 2 certified - MVP 2008/2009 - My danish blog with a few english posts

Rosko
Posted: Thursday, August 07, 2008 2:52:34 AM
Rank: Newbie

Joined: 8/5/2008
Posts: 2
Location: US
mortenbock wrote:
You could do that in navigation macro's and so on, but the place that will pose a problem is links created within the TinyMCE editor. Thos will be rendered with NiceURL at runtime, and the only way (that I know of) to change those links is an httpmodule that runs through the entire output and replaces .aspx with .html

Another way to deal with it could be that the .aspx links stay in the html source, but you make a 301 redirect to the .html url instead, if the .aspx extension is requested.



I'm assuming you are talking about linking through tinyMCE to other files in the site....such as "about.aspx", or something like that. In that case, my .html rewrite would still work with isapi...right? What other links does niceURL try to get a handle on? I'm assuming all image links etc are left alone and reference the root of each node/site?

Thanks for the response.....I really appreciate it.
mortenbock
Posted: Thursday, August 07, 2008 10:54:04 AM

Rank: Addict

Joined: 7/19/2006
Posts: 793
Location: Århus, Denmark
I have no experience with isapi filters, so I can't help you there :-(

Morten Bock - Level 2 certified - MVP 2008/2009 - My danish blog with a few english posts

Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.