Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6173937
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T23:39:44+00:00 2026-05-23T23:39:44+00:00

What is the best way to do a 301 redirect with a delay of

  • 0

What is the best way to do a 301 redirect with a delay of several seconds? I want the original page to be displayed for 5-10 seconds and then do a 301 redirect to another site. I’ve found a lot of solutions in PHP on google but the only one I found with a delay didn’t display the original page before redirecting—only an empty screen.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T23:39:45+00:00Added an answer on May 23, 2026 at 11:39 pm

    You can’t really do a true 301 redirect with a delay. HTTP is stateless. For a “301 redirect”, which is what you want if you’re trying to make google happy; the client sends a request, and the status code on the reply from the server will be 301, also as part of the reply you’ll use a location header and tell where the new content is. If you don’t have all that, you’re not doing a 301 redirect.

    With the other answer, you’re doing a meta refresh on the client side, which google does not like.

    This is how you do a 301, and the user doesn’t even see the old page at all, and probably will have no idea they’ve even been redirected.

    $location="http://www.yoursite.com/newpage";
    header ('HTTP/1.1 301 Moved Permanently');
    header ('Location: '.$location);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using ASP.NET 4. I want to do a 301 redirect from http://sitename.com
Best way to 'insert' a page in a TPageControl if i already have many
Best way to extract the minutes and seconds from youtube urls? http://www.youtube.com/watch?v=TjTbNWhsG28#t=1m40s&foo=1&bar=2 where 1m40s
How is the best way to redirect multiple domains to one domain? It's a
Best way to match 2 pages for Google analytics. Pages to Query: 1.) this_google.html
The best way I think to explain this is to tell you what my
The best way to explain my problem is by a example. I have a
Any best way to run the jasmine HTML reporter with browserify styled code? I
the best way to explain is with example so: this is the model public
The best way I can think of to ask this is by example... In

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.