C# Corner
Tech
News
Videos
Forums
Trainings
Books
Events
More
Interviews
Jobs
Live
Learn
Career
Members
Blogs
Challenges
Certifications
Bounties
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
Redirect a SharePoint Site Using the Content Editor Web Part
WhatsApp
Rajkiran Swain
10y
115.1
k
0
1
25
Blog
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.
People also reading
Membership not found