Solved

Redirect internal CMS links to O365 hosted CMS

Posted on 2016-10-18
3
19 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
  • 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

Promote certifications in your email signature

Has your company recently won an award or achieved a certification? They'll no doubt want to show it off. Email signature images used to promote certifications & awards can instantly establish credibility with a recipient and provide you with numerous benefits.

Join & Write a Comment

I've been asked to discuss some of the UX activities that I'm using with my team. Here I will share some details about how we approach UX projects.
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

746 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now