Solved

Redirect internal CMS links to O365 hosted CMS

Posted on 2016-10-18
3
25 Views
Last Modified: 2016-11-08
hello,

We are migrating our internally hosted CMS to SP hosted on the O365. In order to prevent any broken links available in the thousands of documents how can we manage that the Old links when clicked can be redirected to the new links on the o365 hosted SP CMS.

Many Thanks
A
0
Comment
Question by:A G
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 25

Accepted Solution

by:
dgrafx earned 500 total points (awarded by participants)
ID: 41850619
Place this rule in your DOCUMENT_ROOT/.htaccess file of domain.com:

RewriteEngine On

RewriteCond %{HTTP_HOST} ^(?:www\.)domain\.com$ [NC]
RewriteRule ^ http://newdomain.com%{REQUEST_URI} [L,R=301]

http://stackoverflow.com/questions/19816284/redirect-all-urls-exactly-just-change-domain-name

Or if using web.config

<rule name="Redirect to new domain" stopProcessing="true">
      <match url="^(.*)$" />
      <conditions>            
        <add input="{HTTP_HOST}" matchType="Pattern" pattern="^olddomain(:\d+)?$" />
      </conditions>
      <action type="Redirect" url="https://my.newdomain.io/{R:1}" redirectType="Permanent" />
    </rule>

http://stackoverflow.com/questions/31348272/redirect-old-domain-to-new-domain-keeping-url
0
 

Author Comment

by:A G
ID: 41851424
Thank you so much very helpful!
0
 
LVL 25

Expert Comment

by:dgrafx
ID: 41878453
Good Luck ...
0

Featured Post

Office 365 Training for Admins - 7 Day Trial

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Australian government abolished Visa 457 earlier this April and this article describes how this decision might affect Australian IT scene and IT experts.
When using a search centre, I'm going to show you how to configure Sharepoint's search to only return results from the current site collection. Very useful when using Office 365 with multiple site collections.
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question