Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi guys,
I had another post here but it got removed by a spam filter :)
Lee was helping me with a url rewrite that would change urls like this
Does this help? This ignores some folders specifi to Umbraco and might be a good starting point for you.
<add name="301RedirectDirUrls" redirectMode="Permanent" redirect="Application" ignoreCase="true" rewriteUrlParameter="IncludeQueryStringForRewrite" virtualUrl="^\/(?!(umbraco\/|data\/|install\/|usercontrols\/|umbraco_client\/))(.*)\.aspx" destinationUrl="$1/$2" />
Thank you Amir,
I'm not sure how to use this, the plugin inside App_plugins is MVC project so it would not match aspx endings.
There is specific Mvc routing for that application that urlrewriting.net seems to be overriding.
Is there no way to tell urlrewriting.net to simply not proccess some directories ?
I think you'd do it like this:
<add name="rewrite"virtualUrl="^\/(?!(umbraco))~/(.*)/([\w]*)"destinationUrl="~/$1/?queryString=$2"rewriteUrlParameter="IncludeQueryStringForRewrite"redirectMode="Permanent"ignoreCase="true" />
There seems to be some error in it, the rule is not hit.
I'm really greatful for your help !
If you have anymore ideas it would be appreciated !
Whoops, did you change "umbraco" to "app_data" when you applied the rule?
"app_plugins", sorry.
yes I did :)
But what ever is written there the main rule does not fire "~/(.*)/([\w]*)"
The app_plugins work, but not /x/x/?querystring=abc
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Url rewrite in Umbraco, exclude app_plugins folder
Hi guys,
I had another post here but it got removed by a spam filter :)
Lee was helping me with a url rewrite that would change urls like this
Does this help? This ignores some folders specifi to Umbraco and might be a good starting point for you.
Thank you Amir,
I'm not sure how to use this, the plugin inside App_plugins is MVC project so it would not match aspx endings.
There is specific Mvc routing for that application that urlrewriting.net seems to be overriding.
Is there no way to tell urlrewriting.net to simply not proccess some directories ?
I think you'd do it like this:
There seems to be some error in it, the rule is not hit.
I'm really greatful for your help !
If you have anymore ideas it would be appreciated !
Whoops, did you change "umbraco" to "app_data" when you applied the rule?
"app_plugins", sorry.
yes I did :)
But what ever is written there the main rule does not fire "~/(.*)/([\w]*)"
The app_plugins work, but not /x/x/?querystring=abc
is working on a reply...