<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>WebPaws.com &#187; 302</title>
	<atom:link href="http://webpaws.com/blog/tag/302/feed/" rel="self" type="application/rss+xml" />
	<link>http://webpaws.com/blog</link>
	<description>Internet Marketing and Design Services for Turnkey Web Solutions</description>
	<lastBuildDate>Thu, 10 May 2012 02:17:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Classic ASP header redirect (302 Object Moved)</title>
		<link>http://webpaws.com/blog/6/classic-asp-header-redirect-302-object-moved/</link>
		<comments>http://webpaws.com/blog/6/classic-asp-header-redirect-302-object-moved/#comments</comments>
		<pubDate>Tue, 19 Aug 2008 21:24:27 +0000</pubDate>
		<dc:creator>webpaws</dc:creator>
				<category><![CDATA[ASP]]></category>
		<category><![CDATA[302]]></category>
		<category><![CDATA[303]]></category>
		<category><![CDATA[classic]]></category>
		<category><![CDATA[redirect]]></category>

		<guid isPermaLink="false">http://webpaws.com/blog/?p=6</guid>
		<description><![CDATA[ASP makes it easy to redirect a user to another page. This is a useful trick for redirecting users after form submissions, protecting content on your site by redirecting users to a login page, and pointing an old page address to a new one. Classic ASP header redirect (302 Object Moved) At the top of [&#8230;] <a class="more-link" href="http://webpaws.com/blog/6/classic-asp-header-redirect-302-object-moved/">&#8595; Read the rest of this entry...</a><br /><a target="_blank" href="http://www.gdstarrating.com/"><img src="http://webpaws.com/blog/wp-content/plugins/gd-star-rating/gfx/powered.png" border="0" width="80" height="15" /></a><br /><p><a href="http://webpaws.com/blog/6/classic-asp-header-redirect-302-object-moved/">Classic ASP header redirect (302 Object Moved)</a> is a post from: <a href="http://webpaws.com/blog">WebPaws.com</a></p>
]]></description>
			<content:encoded><![CDATA[<!--S-ButtonZ 1.1.5 Start--><!--S-ButtonZ 1.1.5 End--><div class="linkedin_share_container" style="float:right;margin:0px 0px 10px 10px"><a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwebpaws.com%2Fblog%2F6%2Fclassic-asp-header-redirect-302-object-moved%2F&amp;title=Classic+ASP+header+redirect+%28302+Object+Moved%29&amp;summary=ASP+makes+it+easy+to+redirect+a+user+to+another+page.+This+is+a%0Auseful+trick+for+redirecting+users+after+form+submissions%2C+protecting%0Acontent+on+your+site+by+redirecting+users+to+a+login+page%2C+and+pointing%0Aan+old+page+address+to+a+new+one.%0AClassic+ASP+header+redirect+%28302+Object+Moved%29%0AAt+the+top+of+your+ASP+document+%28before+any+%5B%26hellip%3B%5D+%3Ca+class%3D%22more-link%22+href%3D%22http%3A%2F%2Fwebpaws.com%2Fblog%2F6%2Fclassic-asp-header-redirect-302-object-moved%2F%22%3E%26darr%3B+Read+the+rest+of+this+entry...%3C%2Fa%3E&amp;source=WebPaws.com" onclick="return popupLinkedInShare(this.href,'console',400,570)" class="linkedin_share_button"><img src="http://webpaws.com/blog/wp-content/plugins/linkedin-share-button/buttons/01.png" alt="" /></a></div><p>ASP makes it easy to redirect a user to another page. This is a<br />
useful trick for redirecting users after form submissions, protecting<br />
content on your site by redirecting users to a login page, and pointing<br />
an old page address to a new one.</p>
<p><strong>Classic ASP header redirect (302 Object Moved)</strong></p>
<p>At the top of your ASP document (before any HTML code), use the following code:</p>
<p><code>&lt;% Response.Redirect("default.asp") %&gt;</code></p>
<p>This example shows how to redirect a user to a page on your own<br />
site, in the same directory as your redirect page. If you wanted to<br />
redirect a user to a completely different website, simply use the full<br />
URL:</p>
<p><code>&lt;% Response.Redirect("http://www.yourdomain.com") %&gt;</code></p>
<p>The Response.Redirect declarative gives an “Object Moved,” or Status<br />
Code 302 header response. If you want to permanently point an old page<br />
address to a new one using ASP, see below.</p>
<p><strong>Serving a permanent redirect (301) header status code</strong></p>
<p>There may be an instance where you want to point an old page to a<br />
new location. This can be accomplished in ASP by including specific<br />
header information in your code snippet. The following example serves a<br />
301 Redirect (“301 Moved Permanently”) to anyone who accesses the page.</p>
<p>&lt;%<br />
Response.Status=&#8221;301 Moved Permanently&#8221;<br />
Response.AddHeader &#8220;Location&#8221;, &#8220;http://www.thenewdomain.com&#8221;<br />
%&gt;</p>
<br /><a target="_blank" href="http://www.gdstarrating.com/"><img src="http://webpaws.com/blog/wp-content/plugins/gd-star-rating/gfx/powered.png" border="0" width="80" height="15" /></a><br /><p><a href="http://webpaws.com/blog/6/classic-asp-header-redirect-302-object-moved/">Classic ASP header redirect (302 Object Moved)</a> is a post from: <a href="http://webpaws.com/blog">WebPaws.com</a></p>
<div style="clear:both;">&nbsp;</div><span class="facebook-like"><fb:like layout="box_count" show_faces="false" width="45" href="http://webpaws.com/blog/6/classic-asp-header-redirect-302-object-moved/"></fb:like></span>]]></content:encoded>
			<wfw:commentRss>http://webpaws.com/blog/6/classic-asp-header-redirect-302-object-moved/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

