Follow me on twitter @yodasmydad
Ahhhh #Fringe can't finish like that!! Latest Tweet:

Hey I'm Lee. My blog was put up to house my strange thoughts, ramblings, nuggets of information I can refer back to and document my learning curves on new dev stuff like Umbraco v5 and other .NET related things.

All thoughts and comments on here are my own, and in no way reflect my employer - I also take no responsibility for spelling, grammar or terminology, so read at your own risk!

Blogs I Read

Sites I Like

Changing .aspx files to .htm

In our CMS I have a custom URL rewriting module that creates SEO friendly URLS based on the users page name.  This was great and worked well, but I have noticed over the past couple of years that even though Google say they treat .aspx, .php extensions the same as static .htm pages - .htm pages just seem to do better in the SERPS for the sites I have managed. [more]

So I went about trying to find out a way of auto changing the extension to .aspx to .htm, well after a while I realised I was being a plank – The easiest and quickest way to go about it was to use the fantastic ISAPI rewrite 3 and make the site treat .htm extensions as .aspx files.  I slapped this in ISAPI and VOILA! Works a treat..

RewriteEngine on
RewriteRule ^(.*)\.htm $1\.aspx

Hope this helps someone else

Back to top