Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Thursday, August 30, 2012 12:11 AM
Hi
I have a website that created using sharepoint 2010. There are MANY pages ( >60 pages) that are old and not use any more but I do not want to delete them... I want to redirect to the new pages. What is the best way to redirect those pages when the users enter the url with the old page. Can i do something like create a text file or HTML file and upload it to the sharepoint document library.. and somehow redirect base on the url form this file?
Please advise. Thank you.
Ddee
All replies (5)
Thursday, August 30, 2012 1:40 AM âś…Answered | 1 vote
Hi! you may use Content Editor Web Part for this purpose. Just add this web part to the page, click on edit web part and enter the link to your script Under Content Link. Under layout, select the "hidden" checkbox. The script for your redirect you may find here http://usermanagedsolutions.com/SharePoint-User-Toolkit/Pages/Page-Redirect.aspx (Choose the necessary redirect options and save the script to your PC, after that upload this txt file to a SharePoint library).
Hope it helps!
Thursday, August 30, 2012 5:20 PM
Here are some procedure to redirect:
1) Change the URL of the existing site and create a new site at old site which is free now
2) If the old site is site collection then we need to take teh backup/restore and create a new URL for old site
3) If the old site is sub site then the URL can be changed through site settings--> URL and name option..
Thursday, August 30, 2012 7:54 PM
Thanks Matt. It works for me.
Thursday, September 6, 2012 9:08 PM
I have a sub site which has its own sub sites that was moved under a different site collection because of structual changes within our organization. Is there a way to have any link pointing to the old sites' URLs to redirect to the new site by looking at the path? It looks like this solution will only work if someone navigates to the root of the sub site. If I delete all the content of the old site beside the main page will this solution catch the URL of the old site and redirect them or just send them to the generic error page? Thanks for any help.
Monday, October 5, 2015 2:56 PM
Hi,
I tried to your solution. but it is redirecting when I hit that redirect page where I added the script and all other pages no change. do we need to add the content editor webpart to each and every page of the site?
Raga Kandimalla