Redirect a SharePoint Site
- Edit the page where you would like to include the redirect script
- Add a Content Editor Web Part on the page
- 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
- Select the Content Editor Web Part Click here to add new content link
- Locate the HTML icon within the Markup section of the ribbon, select it, and then select Edit HTML Source
- Type in (or copy and paste) the code below in the HTML Source web page dialog that displays
- <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>
- <meta http-equiv="refresh" content="5;url=https://www.facebook.com">
- 7. Select [OK] and save the page.

Suzi ToonPosted Jul 13, 2020, 7:02 AM
I have added this redirect to a sharepoint root site but now I want to edit or remove the script. I added it using the embed code option rather than adding a content web part. Do you know how I might find or edit the script? (no script editor is visible on the site). Any help would be greatly appreciated!
Henry naingwkPosted May 8, 2019, 5:02 AM
It is working, Thanks Swain
Halong PhuongPosted May 17, 2015, 11:04 AM
Thank for all. I am happy to be here so that It help for me in my work: http://lioa.net