We created about 90 subsites of "Departments" as team sites in SharePoint2010. Now our designers want to change the home page of the subsites to a publishing page. They created another page and made it a publishing page and changed the Welcome page to the new page. That works fine. We want to make sure that anyone that bookmarked or added it to favorites, etc can still get to subsite.
I am trying to redirect a site http://test-intranet/departments/asthma/SitePages/Home.aspx to http://test-intranet/departments/asthma/Pages/Home.aspx (there are actually 90 sites under departments, so any home.aspx at the second level only)
It appears to work ok; however, if I just put in http://test-intranet/departments/SitePages/Home.aspx, it to goes to http://test-intranet/departments/Pages/Home.aspx which is probably exactly what I told it to do, but I really want that page not to redirect.
this is the pattern I used in the redirect
(departments)/(.*?)/?SitePages/Home.aspx
and it is redirecting to
{R:1}/{R:2}/Pages/Home.aspx
Permanent (301)