Usually I use the umbracoRedirect alias to create a 302 redirect, using a content picker datatype to select the destination page. However, I'm trying to figure out how to do this with a permanent, 301 redirect but I'm having no luck whatsoever. I edited the UrlRewriting file in the config folder using the example in the file:
This does indeed redirect domain.com to domain.com/home using a 301, but every other page is 404'd. What's the easiest way to 301 redirect the top level page to /subpage.aspx?
Top level node 301 redirect to sub-page
Hi all,
Usually I use the umbracoRedirect alias to create a 302 redirect, using a content picker datatype to select the destination page. However, I'm trying to figure out how to do this with a permanent, 301 redirect but I'm having no luck whatsoever. I edited the UrlRewriting file in the config folder using the example in the file:
This does indeed redirect domain.com to domain.com/home using a 301, but every other page is 404'd. What's the easiest way to 301 redirect the top level page to /subpage.aspx?
Thanks!
Try as you have but with virtualUrl="^/(\?|$)"
Andy
is working on a reply...