2
Vote

Unable to rewrite urls based in /home or /account

description

If a rewrite rule tries to redirect a url that starts with /home or /account, the rule is not applied. An example of such a rule is:

"RewriteRule ^/home/member-services/membership$ /members/ [R=301]"

My own investigations have found that this is likely because the default routes set up by orchard in DefaultRouteProvider.cs are overriding the rules provided by the rewrite rules module.

These default routes match urls starting with /home or /account but I haven't been entirely successful in figuring out why orchard sets these up or what the purpose is.

comments