{"id":4548,"date":"2009-10-28T11:07:42","date_gmt":"2009-10-28T18:07:42","guid":{"rendered":"http:\/\/css-tricks.com\/?page_id=4548"},"modified":"2009-10-28T11:07:42","modified_gmt":"2009-10-28T18:07:42","slug":"meta-refresh","status":"publish","type":"page","link":"https:\/\/css-tricks.com\/snippets\/html\/meta-refresh\/","title":{"rendered":"Meta Refresh"},"content":{"rendered":"

The redirects to the provided URL in 5 seconds. Set to 0 for an immediate redirect.<\/p>\n

<meta http-equiv=\"refresh\" content=\"5;url=http:\/\/example.com\/\" \/><\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"

The redirects to the provided URL in 5 seconds. Set to 0 for an immediate redirect. <meta http-equiv=”refresh” content=”5;url=http:\/\/example.com\/” \/><\/p>\n","protected":false},"author":3,"featured_media":0,"parent":3231,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"page-snippet.php","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"sig_custom_text":"","sig_image_type":"featured-image","sig_custom_image":0,"sig_is_disabled":false,"inline_featured_image":false,"c2c_always_allow_admin_comments":false,"footnotes":""},"tags":[],"acf":[],"jetpack-related-posts":[{"id":4028,"url":"https:\/\/css-tricks.com\/snippets\/htaccess\/301-redirects\/","url_meta":{"origin":4548,"position":0},"title":"301 Redirects","date":"September 11, 2009","format":false,"excerpt":"This is the cleanest way to redirect a URL. Quick, easy, and search-engine friendly. Remember HTAccess stuff is for Apache servers only. Redirect a single page Redirect 301 \/oldpage.html http:\/\/www.yoursite.com\/newpage.html Redirect 301 \/oldpage2.html http:\/\/www.yoursite.com\/folder\/ Redirect an entire site This way does it with links intact. That is www.oldsite.com\/some\/crazy\/link.html will become\u2026","rel":"","context":"In "Article"","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":5340,"url":"https:\/\/css-tricks.com\/snippets\/php\/append-login-credentials-to-url\/","url_meta":{"origin":4548,"position":1},"title":"Append Login Credentials to URL","date":"January 20, 2010","format":false,"excerpt":"The example here is if you had a form on a website that when submitted, needed to use that information to go to a special URL where the login information was all appeneded to the URL. You could have the form post with method GET, but that is limited to\u2026","rel":"","context":"In "Article"","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":3815,"url":"https:\/\/css-tricks.com\/snippets\/jquery\/partial-page-refresh\/","url_meta":{"origin":4548,"position":2},"title":"Partial Page Refresh","date":"September 4, 2009","format":false,"excerpt":"Refresh certain elements of a page using jQuery after a set amount of time, can be used with any element with an ID. I amended the example given with the URL to only refresh once and not intermittently. Works in all browsers. $('#button1').click(function() { var url = \"http:www.your-url.com?ID=\" + Math.random();\u2026","rel":"","context":"In "Article"","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":4621,"url":"https:\/\/css-tricks.com\/snippets\/php\/discover-and-display-meta-tags\/","url_meta":{"origin":4548,"position":3},"title":"Discover and Display Meta Tags","date":"November 5, 2009","format":false,"excerpt":"This is a completely styled page which displays meta tag information it pulls from provided URLs. Change the URL's at the top of the code to change the websites it gathers the information from. Meta Tag Finder Meta Tag Finder NorthStar Media Author: Copyright: Description: Keywords: Robots: Generator: The Coupon\u2026","rel":"","context":"In "Article"","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":6595,"url":"https:\/\/css-tricks.com\/snippets\/javascript\/intervals\/","url_meta":{"origin":4548,"position":4},"title":"Intervals","date":"June 14, 2010","format":false,"excerpt":"Standard You don't need to create the variable, but it's a good practice as you can use that variable with clearInterval to stop the currently running interval. var int = setInterval(\"doSomething()\", 5000 ); \/* 5 seconds *\/ var int = setInterval(doSomething, 5000 ); \/* same thing, no quotes, no parens\u2026","rel":"","context":"In "Article"","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":3885,"url":"https:\/\/css-tricks.com\/snippets\/javascript\/redirect\/","url_meta":{"origin":4548,"position":5},"title":"Redirect","date":"September 6, 2009","format":false,"excerpt":"","rel":"","context":"In "Article"","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/pages\/4548"}],"collection":[{"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/comments?post=4548"}],"version-history":[{"count":1,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/pages\/4548\/revisions"}],"predecessor-version":[{"id":4549,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/pages\/4548\/revisions\/4549"}],"up":[{"embeddable":true,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/pages\/3231"}],"wp:attachment":[{"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/media?parent=4548"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/tags?post=4548"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}