<?xml version="1.0" encoding="utf-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: PHP Redirect Vs JavaScript Redirect?</title>
	<atom:link href="http://www.satya-weblog.com/2009/10/php-redirect-vs-javascript-redirect.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.satya-weblog.com/2009/10/php-redirect-vs-javascript-redirect.html</link>
	<description>a web development blog</description>
	<lastBuildDate>Sat, 31 Jul 2010 17:21:21 +0530</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: fyrye</title>
		<link>http://www.satya-weblog.com/2009/10/php-redirect-vs-javascript-redirect.html/comment-page-1#comment-738</link>
		<dc:creator>fyrye</dc:creator>
		<pubDate>Wed, 31 Mar 2010 20:27:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.satya-weblog.com/?p=908#comment-738</guid>
		<description>Since my previous post got cut off.
headers are not server side as the order of information goes.
Client Request-&gt;Server Serves (header)-&gt;Client receives (process header)-&gt;Client Request (Oh the page was moved to here?)-&gt;Server Serves.
Since the header function does not call for the information from the server.
For example header(&quot;refresh: 1; url=/index.php&quot;);
Is the same as the meta tag refresh example.
The difference is that the status and location headers are received by the client prior to meta tags (html)
A better example of server side redirect would be the include or require functions. In which the server requests the page to send to the client. And can not be blocked by the client like headers/scripts can be.</description>
		<content:encoded><![CDATA[<p>Since my previous post got cut off.<br />
headers are not server side as the order of information goes.<br />
Client Request-&gt;Server Serves (header)-&gt;Client receives (process header)-&gt;Client Request (Oh the page was moved to here?)-&gt;Server Serves.<br />
Since the header function does not call for the information from the server.<br />
For example header(&#8220;refresh: 1; url=/index.php&#8221;);<br />
Is the same as the meta tag refresh example.<br />
The difference is that the status and location headers are received by the client prior to meta tags (html)<br />
A better example of server side redirect would be the include or require functions. In which the server requests the page to send to the client. And can not be blocked by the client like headers/scripts can be.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fyrye</title>
		<link>http://www.satya-weblog.com/2009/10/php-redirect-vs-javascript-redirect.html/comment-page-1#comment-737</link>
		<dc:creator>fyrye</dc:creator>
		<pubDate>Wed, 31 Mar 2010 20:09:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.satya-weblog.com/?p=908#comment-737</guid>
		<description>An alternative to the double header(&quot;Location:&quot;) and header(&quot;http/1.1&quot;) is to do
header(&quot;Location:/&quot;, true, 301);
Which translates to replace similar location headers with http-response 301 request client to be sent to web&#039;s root.

Again remember headers can be manipulated, blocked, and disabled by the client.</description>
		<content:encoded><![CDATA[<p>An alternative to the double header(&#8220;Location:&#8221;) and header(&#8220;http/1.1&#8243;) is to do<br />
header(&#8220;Location:/&#8221;, true, 301);<br />
Which translates to replace similar location headers with http-response 301 request client to be sent to web&#8217;s root.</p>
<p>Again remember headers can be manipulated, blocked, and disabled by the client.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chaim Chaikin</title>
		<link>http://www.satya-weblog.com/2009/10/php-redirect-vs-javascript-redirect.html/comment-page-1#comment-603</link>
		<dc:creator>Chaim Chaikin</dc:creator>
		<pubDate>Wed, 09 Dec 2009 00:29:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.satya-weblog.com/?p=908#comment-603</guid>
		<description>The best idea for redirecting a user when a file has been moved, server side, is probably using htaccess file. You can use the PHP redirect when you want to check something first for example if you want to redirect a user to his account page after logging in.</description>
		<content:encoded><![CDATA[<p>The best idea for redirecting a user when a file has been moved, server side, is probably using htaccess file. You can use the PHP redirect when you want to check something first for example if you want to redirect a user to his account page after logging in.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sunilkumar</title>
		<link>http://www.satya-weblog.com/2009/10/php-redirect-vs-javascript-redirect.html/comment-page-1#comment-570</link>
		<dc:creator>sunilkumar</dc:creator>
		<pubDate>Mon, 16 Nov 2009 05:54:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.satya-weblog.com/?p=908#comment-570</guid>
		<description>Its really a good post.  Thanks for posting.</description>
		<content:encoded><![CDATA[<p>Its really a good post.  Thanks for posting.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Emile</title>
		<link>http://www.satya-weblog.com/2009/10/php-redirect-vs-javascript-redirect.html/comment-page-1#comment-524</link>
		<dc:creator>Emile</dc:creator>
		<pubDate>Fri, 30 Oct 2009 11:19:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.satya-weblog.com/?p=908#comment-524</guid>
		<description>A very important difference is when redirecting from https to http:
header() will give a warning in a popup window in the browser
location.replace(...) will do the redirect without a warning</description>
		<content:encoded><![CDATA[<p>A very important difference is when redirecting from https to http:<br />
header() will give a warning in a popup window in the browser<br />
location.replace(&#8230;) will do the redirect without a warning</p>
]]></content:encoded>
	</item>
</channel>
</rss>
