Follow Us:
Working with a client recently, we had a need to solve a URL redirection issue. In discussions we tossed around using SharePoint AAMs, IIS URL Rewrite and other possibilities. It’s great when the best solution turns out to be the easiest! The best solution ended up was to use a SharePoint Redirect page. It’s not something that is used very often, but it certainly fit the bill for our issue. My focus in this quick tip is not to explain why I used a redirect page, that part should be obvious. All it does is automatically redirects someone to a URL you choose after a 5-second time delay when they hit the redirect page. Instead, my focus is to show you how to change the timeout value as I couldn’t find that documented anywhere else.
By default when you create a redirect page, you just edit the web part and type in the URL that you want the page to redirect to, then save/publish. Users see the page, sit the obligatory 5 seconds, then go to the final location. This was a complete temporary solution that will be removed after about a month, so we just wanted it to go as fast as possible. You could have used JavaScript in a content editor web part in a page to do the same thing, as this post suggests on nothingbutsharepoint.com. Anyway, let’s get to it.
To do this, the redirect page is a publishing page layout. So to change the timeout, we need to edit the page layout.
Again, the same thing can be done even easier than this using the method from nothingbutsharepoint.com using JavaScript and CEWPs. But, I wanted to show how you would change the timeout values in the default SharePoint page layout for a redirect page.
Todd Klindt goes into detail about doing redirects with SharePoint in this blog article. If you'd like more information on C5 Insight's services or solutions, please contact us.
The complementary paper includes over 12 years of research, recent survey results, and CRM turnaround success stories.
Request Download
This 60-second assessment is designed to evaluate your organization's collaboration readiness.
Learn how you rank compared to organizations typically in years 1 to 5 of implementation - and which areas to focus on to improve.
This is a sandbox solution which can be activated per site collection to allow you to easily collect feedback from users into a custom Feedback list.
Whether you are upgrading to SharePoint Online, 2010, 2013 or the latest 2016, this checklist contains everything you need to know for a successful transition.