I am currently trying to rewrite a site so it turns the .aspx into .html as per our clients wishes. Now, I actually managed to do that, but, there is one problem. All the pages show up as blank. We are using umbraco 4.0.3 on a windows server 2003 machine.
I already tried altering some settings in the IIS config, but am quite sure I must have missed something. So, anyone can shed some light on this for me?
I'm guessing that you need to ensure that .html files are processed by the .net ISAPI within IIS, basically this means when IIS gets a request for a .html file it will treat it like a .aspx file.
However, are you sure your client wouldn't be happier with an extensionless url? like:
there isn't any benefit of having the .html extension, just get rid of the .aspx extension as mentioned above and you'll have nice, clean and readable url's !
urlrewriting
Hey all,
I am currently trying to rewrite a site so it turns the .aspx into .html as per our clients wishes. Now, I actually managed to do that, but, there is one problem. All the pages show up as blank. We are using umbraco 4.0.3 on a windows server 2003 machine.
I already tried altering some settings in the IIS config, but am quite sure I must have missed something. So, anyone can shed some light on this for me?
Thanks in advance!
-Ferdy
Hey,
I'm guessing that you need to ensure that .html files are processed by the .net ISAPI within IIS, basically this means when IIS gets a request for a .html file it will treat it like a .aspx file.
However, are you sure your client wouldn't be happier with an extensionless url? like:
http://www.myWebsite.com/my-news-article
This can be achieved by one simple setting in the web.config file and will get rid of .aspx completely
Rich
I agree with Rich, extensionless URLs are best, but either way you may have to setup handler mappings, check out this wiki post:
http://our.umbraco.org/wiki/install-and-setup/setting-up-umbraco-for-friendly-urls
there isn't any benefit of having the .html extension, just get rid of the .aspx extension as mentioned above and you'll have nice, clean and readable url's !
Well, that certainly is a lot easier! I have forwarded it to our client to see if he agrees with this solution.
Thanks a lot :)
-Ferdy
is working on a reply...