<?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>BrianYerkes.com &#124; Logo Design &#124; Web Design &#124; Fort Myers,Naples Florida &#187; PHP Tutorials</title>
	<atom:link href="http://www.BrianYerkes.com/category/php-tutorials/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.BrianYerkes.com</link>
	<description>My life, designed and explained</description>
	<lastBuildDate>Wed, 19 Oct 2011 16:41:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.2</generator>
		<item>
		<title>Display Current Year With PHP</title>
		<link>http://www.BrianYerkes.com/display-current-year-with-php/</link>
		<comments>http://www.BrianYerkes.com/display-current-year-with-php/#comments</comments>
		<pubDate>Sat, 02 Jan 2010 04:29:57 +0000</pubDate>
		<dc:creator>brianyerkes</dc:creator>
				<category><![CDATA[PHP Tutorials]]></category>
		<category><![CDATA[Productivity]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[Web Design Resources]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.BrianYerkes.com/?p=244</guid>
		<description><![CDATA[Now that 2010 is just starting, many web designers have to update the copyright year on their own websites, and their client&#8217;s websites. Many end up doing it manually and waste a lot of time with this tedious task, but some use a better method, and it&#8217;s as simple as one line of PHP. Copyright [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.BrianYerkes.com/wp-content/uploads/img-phpyear.jpg" alt="img-phpyear" title="img-phpyear" width="300" height="259" class="alignleft size-full wp-image-245" /></p>
<p>Now that 2010 is just starting, many web designers have to update the copyright year on their own websites, and their client&#8217;s websites.</p>
<p>Many end up doing it manually and waste a lot of time with this tedious task, but some use a better method, and it&#8217;s as simple as one line of PHP.</p>
<p><code>Copyright &lt;? print(Date("Y")); ?&gt;<!--formatted--></code></p>
<p>No longer do you have to manually edit the footer of your websites with each year that passes! </p>
]]></content:encoded>
			<wfw:commentRss>http://www.BrianYerkes.com/display-current-year-with-php/feed/</wfw:commentRss>
		<slash:comments>19</slash:comments>
		</item>
		<item>
		<title>PHP Redirect &#8211; 2 domains pointing to one website</title>
		<link>http://www.BrianYerkes.com/php-redirect-2-domains-pointing-to-one-website/</link>
		<comments>http://www.BrianYerkes.com/php-redirect-2-domains-pointing-to-one-website/#comments</comments>
		<pubDate>Mon, 28 Apr 2008 04:51:37 +0000</pubDate>
		<dc:creator>brianyerkes</dc:creator>
				<category><![CDATA[PHP Tutorials]]></category>

		<guid isPermaLink="false">http://www.BrianYerkes.com/php-redirect-2-domains-pointing-to-one-website/</guid>
		<description><![CDATA[My company was recently hired to take over the management of the Fort Myers Beach Chamber of Commerce website, and as we dugg thru the site, the databases and the emails, I realized that the Chamber had two domain names, and 2 identical websites. FortMyersBeach.org, and Fmbchamber.com. Not good! Not good because the all of [...]]]></description>
			<content:encoded><![CDATA[<p>My company was recently hired to take over the management of the Fort Myers Beach Chamber of Commerce website, and as we dugg thru the site, the databases and the emails, I realized that the Chamber had two domain names, and 2 identical websites. FortMyersBeach.org, and Fmbchamber.com. Not good! Not good because the all of the backlinks, page rank and content was being shared over two websites, hindering the website&#8217;s search engine performance.</p>
<p>So, we had to figure out a way for both domains to still show the Chamber website, but to not lose the rankings and link juice for either website.  As the websites are in PHP, we decided that the best way to go about this process was with .htaccess file re-directs. Pretty simple implementation involved as you can see from the small snippet of code below. All you have to do is add this code to your .htaccess file (create one if you do not have one already) , and yes, that is a period before the &#8220;h&#8221;.</p>
<p>.htaccess files only work on Apache servers so before you use them make sure your server allows this file.</p>
<p>Code:</p>
<blockquote><p><font color="#808080">Options +FollowSymlinks<br />
RewriteEngine on<br />
rewritecond %{http_host} ^www.fmbchamber.com [nc]<br />
rewriterule ^(.*)$ </font><a href="http://www.fortmyersbeach.org$1/"><font color="#808080">http://www.fortmyersbeach.org$1</font></a><font color="#808080"> [r=301,nc]</font></p>
<p><font color="#808080">Options +FollowSymlinks<br />
RewriteEngine on<br />
rewritecond %{http_host} ^fmbchamber.com [nc]<br />
rewriterule ^(.*)$ </font><a href="http://www.fortmyersbeach.org$1/"><font color="#808080">http://www.fortmyersbeach.org$1</font></a><font color="#808080"> [r=301,nc]</font></p></blockquote>
<p>It is pretty obvious what is going on in this code. I am telling the server to permanently redirect any fmbchamber.com and www.fmbchamber.com url&#8217;s to www.fortmyersbeach.org. I threw this together real quick and I&#8217;m sure hardcore php developers have a much cleaner way of coding this, but this snippet works perfectly for its purpose. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.BrianYerkes.com/php-redirect-2-domains-pointing-to-one-website/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

