Also importantly I need to redirect to the trailing slash version of the url so that my reserved paths will work correctly.... BUT I don't want every umbraco request to have a 301 redirect from the non trailing to the trailing slash version.
I am not sure what the rewriteUrlParameter parameter should be. And if you are handling querystring parameters you will need the regular expression modifying to accept these.
urlrewriting .net trailing slash & lowercase
Hi everyone
I'd like to implement these rewrite rules (particularly the top 2) in an umbraco site.
http://ruslany.net/2009/04/10-url-rewriting-tips-and-tricks/
I've tried and failed, and the documentation doesn't seem to be very comprehensive on the http://www.urlrewriting.net/160/en/documentation.html website (and the forum is in german)
can anyone give me some pointers for these tasks.
Also importantly I need to redirect to the trailing slash version of the url so that my reserved paths will work correctly.... BUT I don't want every umbraco request to have a 301 redirect from the non trailing to the trailing slash version.
Cheers.
Murray.
We use the following to on live sites to stop the debug show parameter returning debugging info
[code]
[/code]
So I would expect the following to remove the trailing slash
[code]
virtualUrl="^(.*)/$"
rewriteUrlParameter="IncludeQueryStringForRewrite"
redirect="Application"
destinationUrl="~$1"
ignoreCase="true" />
[/code]
I am not sure what the rewriteUrlParameter parameter should be. And if you are handling querystring parameters you will need the regular expression modifying to accept these.
is working on a reply...