I've moved a site onto a new host and as such directory urls no longer work, however the new host has the IIS rewrite module installed so I have added the following rulesto use it, but they don't seem to quite work.
I'd like the links to be seo friendly e.g /mylink/ and not /mylink.aspx - and then to appear as /mylink/ in the address bar when navigated to.
Here's my web.config section.
<rewrite> <rules> <!-- SEO: Using Directory URLs, so force trim all .aspx --> <!-- exclude umbraco folder --> <rule name="Trim aspx for directory URLs" stopProcessing="true"> <match url="(.*)\.aspx$" /> <conditions> <add input="{REQUEST_URI}" pattern="^/umbraco/" negate="true" /> </conditions> <action type="Redirect" redirectType="Permanent" url="{R:1}/" /> </rule>
IIS Rewrite Module rules for Directory Urls
I've moved a site onto a new host and as such directory urls no longer work, however the new host has the IIS rewrite module installed so I have added the following rulesto use it, but they don't seem to quite work.
I'd like the links to be seo friendly e.g /mylink/ and not /mylink.aspx - and then to appear as /mylink/ in the address bar when navigated to.
Here's my web.config section.
With these rules I get /mylink.aspx/ , then if I turn on umbracoUseDirectoryUrls I get a 404 error on /mylink/
Pete
is working on a reply...