{"id":607,"date":"2012-05-29T02:48:52","date_gmt":"2012-05-29T02:48:52","guid":{"rendered":"https:\/\/theextremewebdesigns.com\/blog\/?p=607"},"modified":"2012-05-29T02:48:52","modified_gmt":"2012-05-29T02:48:52","slug":"redirect-page-php-redirect-page-php-after-5-seconds-1-line-code","status":"publish","type":"post","link":"https:\/\/theextremewebdesigns.com\/blog\/redirect-page-php-redirect-page-php-after-5-seconds-1-line-code\/","title":{"rendered":"Redirect Page PHP After 5 Seconds Examples (1 line code)"},"content":{"rendered":"<p>You can use redirection in PHP to redirect to a page. Redirect page examples provided. Read on to find out more on how to do this.<!--more--><\/p>\n<h2>Examples to Redirect Page using PHP<\/h2>\n<h2>Example 1: Redirect Page to another website without any delay using PHP<\/h2>\n<pre class=\"lang:php decode:true\">&lt;?php\n\nheader( 'Location: http:\/\/www.theextremewebdesigns.com' ) ;\n\n?&gt;<\/pre>\n<h2>Example 2: Redirect Page to a specific page of a website using PHP<\/h2>\n<p>If you would rather redirect to a specific page of a website, use the following code:<\/p>\n<pre class=\"lang:php decode:true\">&lt;?php\n\nheader( 'Location: http:\/\/www.theextremewebdesigns.com\/services.php' ) ;\n\n?&gt;<\/pre>\n<h2>Example 3: Redirect Page after 5 seconds using PHP<\/h2>\n<p>If you would like to redirect to a website after a delay of 5 seconds, use the following code:<\/p>\n<pre class=\"lang:xhtml decode:true\">&lt;?php\n\nheader(\"Refresh: 10; url=http:\/\/www.theextremewebdesigns.com\/\");\n\n?&gt;<\/pre>\n<h5>That\u2019s it!<\/h5>\n<p>Do you know of any other ways to <em><strong>redirect page using php<\/strong><\/em>? Please feel free to share by commenting below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You can use redirection in PHP to redirect to a page. Redirect page examples provided. Read on to find out more on how to do this.<\/p>\n","protected":false},"author":1,"featured_media":141,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[10,13],"tags":[29],"class_list":["post-607","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-php-tips-and-tricks","category-tips-and-tricks","tag-tips-tricks"],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/paBnQX-9N","jetpack_sharing_enabled":true,"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/theextremewebdesigns.com\/blog\/wp-json\/wp\/v2\/posts\/607","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theextremewebdesigns.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/theextremewebdesigns.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/theextremewebdesigns.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/theextremewebdesigns.com\/blog\/wp-json\/wp\/v2\/comments?post=607"}],"version-history":[{"count":0,"href":"https:\/\/theextremewebdesigns.com\/blog\/wp-json\/wp\/v2\/posts\/607\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/theextremewebdesigns.com\/blog\/wp-json\/"}],"wp:attachment":[{"href":"https:\/\/theextremewebdesigns.com\/blog\/wp-json\/wp\/v2\/media?parent=607"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/theextremewebdesigns.com\/blog\/wp-json\/wp\/v2\/categories?post=607"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/theextremewebdesigns.com\/blog\/wp-json\/wp\/v2\/tags?post=607"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}