Can someone post up their rewrite rule that removes the .aspx from the url? The way it's set up on umbraco.org would be perfect for me.
I'm about to tear my hair out here. Been trying different rules for about an hour, and have googled all over the place. I'm using Umbraco 4.0.2.1 on IIS7.5 under Windows 7.
I've set <modules runAllManagedModulesForAllRequests="true"> in my web.config
I've set umbracoUseDirectoryUrls=true, and have verified that the URL rewrite rules are taking effect. I just keep getting 404s every time I try anything to rewrite /articles into /articles.aspx
My UrlRewriting.config file currently looks like this:
Thanks for the quick reply, Rasmus. I won't have the liberty of being able to "configure IIS" like that on the webhost my site will be on once it goes live. From what I've read, there are several ways to skin the URL rewriting cat; the <span style="white-space: pre-wrap; ">runAllManagedModulesForAllRequests="true" method is one of them.</span>
if your webhost is using IIS7 and you can select integrated pipelines then you don't need access to IIS to configure any values. I have a blog post as well and stpes 4-7 deal with this issue:
URL Rewriting - removing .aspx from URL
Can someone post up their rewrite rule that removes the .aspx from the url? The way it's set up on umbraco.org would be perfect for me.
I'm about to tear my hair out here. Been trying different rules for about an hour, and have googled all over the place. I'm using Umbraco 4.0.2.1 on IIS7.5 under Windows 7.
I've set <modules runAllManagedModulesForAllRequests="true"> in my web.config
I've set umbracoUseDirectoryUrls=true, and have verified that the URL rewrite rules are taking effect. I just keep getting 404s every time I try anything to rewrite /articles into /articles.aspx
My UrlRewriting.config file currently looks like this:
You don't need rewrite rules to directoryUrls in Umbraco. It's probably because you haven't configured IIS correctly.
Read my blog post on the subject and see if that doesn't do it
Thanks for the quick reply, Rasmus. I won't have the liberty of being able to "configure IIS" like that on the webhost my site will be on once it goes live. From what I've read, there are several ways to skin the URL rewriting cat; the <span style="white-space: pre-wrap; ">runAllManagedModulesForAllRequests="true" method is one of them.</span>
You're right, it does work. I guess i'll have to live without this due to the web host though.
if your webhost is using IIS7 and you can select integrated pipelines then you don't need access to IIS to configure any values. I have a blog post as well and stpes 4-7 deal with this issue:
http://blog.fairlieagile.co.nz/2009/5/24/setting-up-a-new-umbraco-project
Thanks a heap, Paul. I'll be sure to have a look into that.
HI,
Can anybody give me the demo of Url rewriting....
Thanks
is working on a reply...