Redirect a SharePoint Site Using the Content Editor Web Part

Redirect a SharePoint Site 
  1. Edit the page where you would like to include the redirect script
  2. Add a Content Editor Web Part on the page
  3. Edit the Content Editor Web Part properties, remove chrome, rename the web part to something more meaningful than 'Content Editor' (such as, Redirect), and make any other changes as applicable to your own situation
  4. Select the Content Editor Web Part Click here to add new content link
  5. Locate the HTML icon within the Markup section of the ribbon, select it, and then select Edit HTML Source 
  6. Type in (or copy and paste) the code below in the HTML Source web page dialog that displays
    1. <script '"text/javascript"'>//<![CDATA[alert("This site has been moved to New site. Please check it out . You will be redirected within 5 second.");//]]></script>  
    2. <meta http-equiv="refresh" content="5;url=https://www.facebook.com">  
  7. 7. Select [OK] and save the page.

HCL Tech
HCL Tech