{"id":1637,"date":"2011-08-22T11:34:14","date_gmt":"2011-08-22T15:34:14","guid":{"rendered":"http:\/\/www.iowawebnet.com\/ein\/?p=1637"},"modified":"2011-10-28T11:41:40","modified_gmt":"2011-10-28T15:41:40","slug":"page-redirect","status":"publish","type":"post","link":"https:\/\/www.iowawebnet.com\/ein\/2011\/08\/page-redirect\/","title":{"rendered":"Page Redirect"},"content":{"rendered":"<pre>\r\nHTML\r\n<code>\r\n<head>\r\n&lt;meta http-equiv=\"refresh\" content=\"0;url=http:\/\/google.com\">\r\n<\/head>\r\n<\/code>\r\n<\/pre>\n<pre>\r\nJavascript\r\n<code>\r\n&lt;script language=\"javascript\">\r\n&lt;!--\r\nlocation.replace(\"http:\/\/google.com\")\r\n\/\/-->\r\n&lt;\/script>\r\n<\/code>\r\n<\/pre>\n<pre>\r\nAsp \/ ASP.Net\r\n<code>\r\n&lt;%\r\nRequest.Redirect(\"http:\/\/google.com\")\r\n%>\r\n<\/code>\r\n<\/pre>\n<pre>\r\nPhp\r\n<code>\r\n&lt;?php\r\n\r\n   header( 'Location: http:\/\/google.com' ) ;\r\n\r\n?>\r\n<\/code>\r\n<\/pre>\n<pre>\r\nPerl\r\n<code>\r\n(method 1)\r\n\r\n#!\/usr\/bin\/perl\r\n\r\nuse strict;\r\nuse warnings;\r\n\r\nmy $url = \"http:\/\/google.com\";\r\nprint \"Location: $url\\n\\n\";\r\n\r\n(method 2)\r\n#!\/usr\/bin\/perl\r\n\r\nprint \"Content-Type: text\/html\\n\";\r\nprint \"Location: http:\/\/google.com\\n\\n\";\r\n\r\n(method 3 - using CGI module)\r\n#!\/usr\/bin\/perl\r\n\r\nuse CGI;\r\nmy $cgi = new CGI;\r\n\r\nprint $cgi->header(-location => q[http:\/\/google.com]);\r\n<\/code>\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>HTML &lt;meta http-equiv=&#8221;refresh&#8221; content=&#8221;0;url=http:\/\/google.com&#8221;> Javascript &lt;script language=&#8221;javascript&#8221;> &lt;!&#8211; location.replace(&#8220;http:\/\/google.com&#8221;) \/\/&#8211;> &lt;\/script> Asp \/ ASP.Net &lt;% Request.Redirect(&#8220;http:\/\/google.com&#8221;) %> Php &lt;?php header( &#8216;Location: http:\/\/google.com&#8217; ) ; ?> Perl (method 1) #!\/usr\/bin\/perl use strict; use warnings; my $url = &#8220;http:\/\/google.com&#8221;; print &#8220;Location: $url\\n\\n&#8221;; (method 2) #!\/usr\/bin\/perl print &#8220;Content-Type: text\/html\\n&#8221;; print &#8220;Location: http:\/\/google.com\\n\\n&#8221;; (method 3 &#8211; using CGI module) [&hellip;]<\/p>\n","protected":false},"author":35,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16,33,43],"tags":[71,70],"class_list":["post-1637","post","type-post","status-publish","format-standard","hentry","category-net","category-classic-asp","category-javascript-2","tag-page","tag-redirect"],"_links":{"self":[{"href":"https:\/\/www.iowawebnet.com\/ein\/wp-json\/wp\/v2\/posts\/1637"}],"collection":[{"href":"https:\/\/www.iowawebnet.com\/ein\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.iowawebnet.com\/ein\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.iowawebnet.com\/ein\/wp-json\/wp\/v2\/users\/35"}],"replies":[{"embeddable":true,"href":"https:\/\/www.iowawebnet.com\/ein\/wp-json\/wp\/v2\/comments?post=1637"}],"version-history":[{"count":8,"href":"https:\/\/www.iowawebnet.com\/ein\/wp-json\/wp\/v2\/posts\/1637\/revisions"}],"predecessor-version":[{"id":1646,"href":"https:\/\/www.iowawebnet.com\/ein\/wp-json\/wp\/v2\/posts\/1637\/revisions\/1646"}],"wp:attachment":[{"href":"https:\/\/www.iowawebnet.com\/ein\/wp-json\/wp\/v2\/media?parent=1637"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.iowawebnet.com\/ein\/wp-json\/wp\/v2\/categories?post=1637"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.iowawebnet.com\/ein\/wp-json\/wp\/v2\/tags?post=1637"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}