SharePoint '03 to Office365

ISAPI_Rewrite is Apache mod_rewrite compatible URL rewriter for Microsoft IIS
User avatar
Posts: 2
Joined: 02 Jun 2015, 17:07

SharePoint '03 to Office365

02 Jun 2015, 17:09

Hello,
I want to redirect any links a user may have from this url:

http://sharepoint/sites/myteamisawesome

To this url:

https://mycompany.sharepoint.com/sites/myteamisawesome

How would I do this?

User avatar
Posts: 871
Joined: 12 Mar 2012, 09:54

Re: SharePoint '03 to Office365

03 Jun 2015, 07:34

Hello,

It should look like this:

RewriteBase /
RewriteCond %{HTTP_HOST} ^sharepoint$ [NC]
RewriteRule ^(sites/myteamisawesome.*)$ https://mycompany.sharepoint.com/$1 [NC,R=301,L]

User avatar
Posts: 2
Joined: 02 Jun 2015, 17:07

Re: SharePoint '03 to Office365

03 Jun 2015, 09:49

What if the target URL is different? For example https://mycompany.sharepoint.com/sites/teams/myteam

User avatar
Posts: 871
Joined: 12 Mar 2012, 09:54

Re: SharePoint '03 to Office365

04 Jun 2015, 13:13

Hello,

>What if the target URL is different? For example https://mycompany.sharepoint.com/sites/teams/myteam

Then you should explicitly specify it in the rule:

RewriteBase /
RewriteCond %{HTTP_HOST} ^sharepoint$ [NC]
RewriteRule ^/myteamisawesome/?$ https://mycompany.sharepoint.com/sites/teams/myteam [NC,R=301,L]

Return to ISAPI_Rewrite 3.0

Who is online

Users browsing this forum: No registered users and 35 guests