<?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>WEBii.net News &#38; Tips &#187; php redirect</title>
	<atom:link href="http://webii.net/blog/tag/php-redirect/feed/" rel="self" type="application/rss+xml" />
	<link>http://webii.net/blog</link>
	<description>web design . development . marketing . hosting . domains</description>
	<lastBuildDate>Tue, 31 Aug 2010 20:44:51 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How To:  The Easy 3 Step PHP Redirect.</title>
		<link>http://webii.net/blog/2009/02/how-to-the-easy-3-step-php-redirect/</link>
		<comments>http://webii.net/blog/2009/02/how-to-the-easy-3-step-php-redirect/#comments</comments>
		<pubDate>Thu, 12 Feb 2009 22:09:37 +0000</pubDate>
		<dc:creator>Bobby M</dc:creator>
				<category><![CDATA[Austin Web Design]]></category>
		<category><![CDATA[Tech Support]]></category>
		<category><![CDATA[php redirect]]></category>

		<guid isPermaLink="false">http://webii.net/blog/?p=401</guid>
		<description><![CDATA[Chances are youâ€™ve seen a link like www.example.com/vote that will link you somewhere, even if it is not on example.com.
If you own your own website, youâ€™ve probably even wondered how to use this to your advantage.
Youâ€™re initial thought might be, â€œbut, only an internet wizard of mythical proportions and years of studying the arcane could [...]]]></description>
			<content:encoded><![CDATA[<p>Chances are youâ€™ve seen a link like www.example.com/vote that will link you somewhere, even if it is not on example.com.</p>
<p>If you own your own website, youâ€™ve probably even wondered how to use this to your advantage.</p>
<p>Youâ€™re initial thought might be, â€œbut, only an internet wizard of mythical proportions and years of studying the arcane could be powerful enough to wield such magics as to manipulate the interweb in this manner!!â€</p>
<p>Actually, itâ€™s about as easy as slipping into a pair of Hammer Pants.</p>
<p>There are a couple of different ways to accomplish this, but the one Iâ€™m going to show you is called a PHP 301 Redirect.</p>
<p style="padding-left: 30px;"><strong>1.</strong> First, make a directory in your website that you will want to have the redirect named after.  If you wanted to make a link to your favorite singerâ€™s webpage, which is most likely MC Hammer, you would make a subdirectory called â€œmchammerâ€ in the root directory of your website.  This means your link will look like this:  www.yourdomain.com/mchammer</p>
<p style="padding-left: 30px;"><strong>2. </strong>Create a file called â€œindex.phpâ€ in your â€œmchammerâ€ directory, and insert this code (and only this code!) into the page:</p>
<p style="padding-left: 30px;">&lt;?</p>
<p style="padding-left: 30px;">Header( &#8220;HTTP/1.1 301 Moved Permanently&#8221; );<br />
Header( &#8220;Location: http://www.mchammer.comâ€ );<br />
?&gt;</p>
<p style="padding-left: 30px;"><strong>3.</strong> Replace the example URL (http://www.mchammer.com) with your destination of choice, and save or upload this change.Â  Now, every time you go to www.yourdomain.com/mchammer , you will be redirected to www.mchammer.com.</p>
<p style="padding-left: 30px;"><strong>4.</strong> STOP&#8211;Hammer Time.</p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand">
<ul class="socials">
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=How+To%3A++The+Easy+3+Step+PHP+Redirect.+-+http://b2l.me/dmxuk+(via+@webiinet)" rel="nofollow" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://webii.net/blog/2009/02/how-to-the-easy-3-step-php-redirect/&amp;t=How+To%3A++The+Easy+3+Step+PHP+Redirect." rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-linkedin">
			<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://webii.net/blog/2009/02/how-to-the-easy-3-step-php-redirect/&amp;title=How+To%3A++The+Easy+3+Step+PHP+Redirect.&amp;summary=Chances%20are%20you%C3%A2%E2%82%AC%E2%84%A2ve%20seen%20a%20link%20like%20www.example.com%2Fvote%20that%20will%20link%20you%20somewhere%2C%20even%20if%20it%20is%20not%20on%20example.com.%0D%0A%0D%0AIf%20you%20own%20your%20own%20website%2C%20you%C3%A2%E2%82%AC%E2%84%A2ve%20probably%20even%20wondered%20how%20to%20use%20this%20to%20your%20advantage.%0D%0A%0D%0AYou%C3%A2%E2%82%AC%E2%84%A2re%20initial%20thought%20might%20be%2C%20%C3%A2%E2%82%AC%C5%93but%2C%20only%20an%20inter&amp;source=WEBii.net News &amp; Tips" rel="nofollow" title="Share this on Linkedin">Share this on Linkedin</a>
		</li>
		<li class="sexy-mail">
			<a href="mailto:?subject=%22How%20To%3A%20%20The%20Easy%203%20Step%20PHP%20Redirect.%22&amp;body=I%20thought%20this%20article%20might%20interest%20you.%0A%0A%22Chances%20are%20you%C3%A2%E2%82%AC%E2%84%A2ve%20seen%20a%20link%20like%20www.example.com%2Fvote%20that%20will%20link%20you%20somewhere%2C%20even%20if%20it%20is%20not%20on%20example.com.%0D%0A%0D%0AIf%20you%20own%20your%20own%20website%2C%20you%C3%A2%E2%82%AC%E2%84%A2ve%20probably%20even%20wondered%20how%20to%20use%20this%20to%20your%20advantage.%0D%0A%0D%0AYou%C3%A2%E2%82%AC%E2%84%A2re%20initial%20thought%20might%20be%2C%20%C3%A2%E2%82%AC%C5%93but%2C%20only%20an%20inter%22%0A%0AYou%20can%20read%20the%20full%20article%20here%3A%20http://webii.net/blog/2009/02/how-to-the-easy-3-step-php-redirect/" rel="nofollow" title="Email this to a friend?">Email this to a friend?</a>
		</li>
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://webii.net/blog/2009/02/how-to-the-easy-3-step-php-redirect/&amp;title=How+To%3A++The+Easy+3+Step+PHP+Redirect." rel="nofollow" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://webii.net/blog/2009/02/how-to-the-easy-3-step-php-redirect/&amp;title=How+To%3A++The+Easy+3+Step+PHP+Redirect." rel="nofollow" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-reddit">
			<a href="http://reddit.com/submit?url=http://webii.net/blog/2009/02/how-to-the-easy-3-step-php-redirect/&amp;title=How+To%3A++The+Easy+3+Step+PHP+Redirect." rel="nofollow" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="sexy-google">
			<a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://webii.net/blog/2009/02/how-to-the-easy-3-step-php-redirect/&amp;title=How+To%3A++The+Easy+3+Step+PHP+Redirect." rel="nofollow" title="Add this to Google Bookmarks">Add this to Google Bookmarks</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://webii.net/blog/2009/02/how-to-the-easy-3-step-php-redirect/&amp;title=How+To%3A++The+Easy+3+Step+PHP+Redirect." rel="nofollow" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="sexy-sphinn">
			<a href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http://webii.net/blog/2009/02/how-to-the-easy-3-step-php-redirect/" rel="nofollow" title="Sphinn this on Sphinn">Sphinn this on Sphinn</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://webii.net/blog/2009/02/how-to-the-easy-3-step-php-redirect/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
