Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 67
  • Last Modified:

Redirect internal CMS links to O365 hosted CMS

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
A G
Asked:
A G
  • 2
1 Solution
 
dgrafxCommented:
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
 
A GAuthor Commented:
Thank you so much very helpful!
0
 
dgrafxCommented:
Good Luck ...
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now