Hey everyone,
Been trying to for the life of me to do a URL rewrite for my SP2013 site and it seems like nothing I've tried is working properly. Probably because I don't full understand expressions.
Thought I was close when I was doing this:
<rule name="ProjectPortfolioRewrite" enabled="true"><match filterByTags="A, Area, Base, Form, Frame, Head, IFrame, Img, Input, Link, Script" pattern="^(.*)http://portico/sites/projectportfolio(.*)$" /><action type="Rewrite" url="{R:1}https://projects.companyname.ca{R:2}" /></rule>
I'm trying to attempt the following:
Original URL:
http://portico/sites/projectportfolio/webprogram
Rewritten URL:
https://projects.companyname.ca/webprogram
For now, I've just done a redirect pattern of .*ProjectPortfolio which will take the entire URL and redirect it to the https://projects.companyname.ca main page
My main objective is to have any users who have the bookmarks and site links to be relocated to the project site they are actually looking for instead of the main project site. (All apart of an SP2010 to SP2013 migration, fun eh?).
So basically I want to replace the apart of the URL with https://projects.companyname.ca and the rest of the URL to stay the same
Thanks