Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

show page and then redirect after seconds to another page

Explorer ,
Mar 06, 2017 Mar 06, 2017

I have a client who wants to have a page telling Customers that his address has changed.  Then after a few seconds, then his home page appears.  Any simple ideas?

Thanks.

Don

1.7K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Mar 06, 2017 Mar 06, 2017

Don't use a redirect, as the browser will show a warning that the page is trying to re-direct.

Instead use a modal window.

Translate
LEGEND ,
Mar 06, 2017 Mar 06, 2017

Don't use a redirect, as the browser will show a warning that the page is trying to re-direct.

Instead use a modal window.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 06, 2017 Mar 06, 2017

PZ is right.  Page re-directs should be avoided.   Google doesn't like them.

A short intro might be all you need.

Bootstrap with SVG Intro

Nancy

Nancy O'Shea— Product User, Community Expert & Moderator
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Mar 06, 2017 Mar 06, 2017
LATEST

Note sure if this is 100% browser compliant, but works on just about everything I use it for. Note: The "proper" way to redirect an old address to a new address would be via a 301 redirect in your .htaccess file. This will make sure your Google serps aren't affected. However, that wouldn't give you the 5 second delay, it would just redirect immediately. Up to you and your client to decide if you want a better user experience, or better google serps.

<!doctype html>

<html lang="en">

<head>

<meta charset="utf-8">

<title>My Redirect Page</title>

</head>

<body>

<div>

     You will be redirected in 5 seconds...

</div>

<script type="text/javascript">

setTimeout(function(){

     window.location.replace("http://www.google.com");

}, 5000);

</script>

</body>

</html>

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines