{"id":15,"date":"2005-10-10T23:25:52","date_gmt":"2005-10-11T04:25:52","guid":{"rendered":"http:\/\/www.juixe.com\/techknow\/?p=15"},"modified":"2005-10-10T23:25:52","modified_gmt":"2005-10-11T04:25:52","slug":"page-redirect","status":"publish","type":"post","link":"http:\/\/juixe.com\/techknow\/index.php\/2005\/10\/10\/page-redirect\/","title":{"rendered":"Page Redirect"},"content":{"rendered":"<p>I totally forgot how to redirect to another page using PHP.  After trying to remember I had to look it up in the PHP documentation.  So if you want to redirect to another page using PHP you write to the header using this bit of code:<\/p>\n<pre>\nheader('Location: index.html');\n<\/pre>\n<p>I opted to use PHP solution instead of the HTML meta refresh tag.  You can do the same thing by placing this tag in your html output.<\/p>\n<pre>\n&lt;meta\n  http-equiv='refresh'\n  content='0;URL=http:\/\/www.juixe.com'&gt;\n<\/pre>\n<p>Of course, you can redirect to another page in just about in every language, including JavaScript as this snippet of JavaScript code demonstrates it:<\/p>\n<pre>\ndocument.location.href='index.html'\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>I totally forgot how to redirect to another page using PHP. After trying to remember I had to look it up in the PHP documentation. So if you want to redirect to another page using PHP you write to the header using this bit of code: header(&#8216;Location: index.html&#8217;); I opted to use PHP solution instead [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","footnotes":""},"categories":[13,16,18,3],"tags":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p902K-f","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"http:\/\/juixe.com\/techknow\/index.php\/wp-json\/wp\/v2\/posts\/15"}],"collection":[{"href":"http:\/\/juixe.com\/techknow\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/juixe.com\/techknow\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/juixe.com\/techknow\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/juixe.com\/techknow\/index.php\/wp-json\/wp\/v2\/comments?post=15"}],"version-history":[{"count":0,"href":"http:\/\/juixe.com\/techknow\/index.php\/wp-json\/wp\/v2\/posts\/15\/revisions"}],"wp:attachment":[{"href":"http:\/\/juixe.com\/techknow\/index.php\/wp-json\/wp\/v2\/media?parent=15"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/juixe.com\/techknow\/index.php\/wp-json\/wp\/v2\/categories?post=15"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/juixe.com\/techknow\/index.php\/wp-json\/wp\/v2\/tags?post=15"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}