<?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/"
	xmlns:media="http://search.yahoo.com/mrss/">

<channel>
	<title>SEO.com &#187; Peter Ehat</title>
	<atom:link href="http://www.seo.com/author/peter/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.seo.com</link>
	<description>Search Engine Optimization SEO &#38; Internet Marketing Company</description>
	<lastBuildDate>Thu, 16 May 2013 12:01:43 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
<atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/>		<item>
		<title>Beware of Spammers in Capitalist&#039;s Clothing</title>
		<link>http://www.seo.com/blog/beware-of-spammers-in-capitalists-clothing/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=beware-of-spammers-in-capitalists-clothing</link>
		<comments>http://www.seo.com/blog/beware-of-spammers-in-capitalists-clothing/#comments</comments>
		<pubDate>Tue, 25 Mar 2008 23:42:51 +0000</pubDate>
		<dc:creator>Peter Ehat</dc:creator>
				<category><![CDATA[Advertising]]></category>
		<category><![CDATA[Blog]]></category>
		<category><![CDATA[capitalism]]></category>
		<category><![CDATA[rant]]></category>
		<category><![CDATA[spam]]></category>

		<guid isPermaLink="false">http://www.seo.com/blog/advertising/beware-of-spammers-in-capitalists-clothing/</guid>
		<description><![CDATA[<p><p><a href="http://www.seo.com/blog/beware-of-spammers-in-capitalists-clothing/">Beware of Spammers in Capitalist&#039;s Clothing</a> is a post by SEO expert <a rel="author" href="http://www.seo.com/author/peter/">Peter Ehat</a>. For information about our <a href="http://www.seo.com/services/">SEO services</a> or more great SEO tips and tricks, visit the <a href="http://www.seo.com/blog">SEO.com blog</a>.</p><p>Time for a little rant. I&#8217;ve been researching Google&#8217;s initiative to crack-down on websites selling and buying paid links. I&#8217;ve let myself get a bit riled-up as I&#8217;ve re-discovered the following: Too many people still think Capitalism is somehow inherently evil Some usually bright people have an amazingly hard time distinguishing between spam and good [...]<a href='http://www.seo.com/request-a-proposal/?utm_source=seoblog&utm_medium=banner&utm_content=insight&utm_campaign=blogcta'><img width="670" height="116" src="http://www.seo.com/wp-content/uploads/2012/06/Get-Internet-Marketing-Insight-For-Your-Company-SEO.com_.png" class="attachment-blog-header wp-post-image" alt="Get Internet Marketing Insight For Your Company - SEO.com" /></a></p></p><p><a href="http://www.seo.com/blog/beware-of-spammers-in-capitalists-clothing/">Beware of Spammers in Capitalist&#039;s Clothing</a> is a post by SEO expert <a rel="author" href="http://www.seo.com/author/peter/">Peter Ehat</a>. For information about our <a href="http://www.seo.com/services/">SEO services</a> or more great SEO tips and tricks, visit the <a href="http://www.seo.com/blog">SEO.com blog</a>.</p>]]></description>
				<content:encoded><![CDATA[<p><a href="http://www.seo.com/blog/beware-of-spammers-in-capitalists-clothing/">Beware of Spammers in Capitalist&#039;s Clothing</a> is a post by SEO expert <a rel="author" href="http://www.seo.com/author/peter/">Peter Ehat</a>. For information about our <a href="http://www.seo.com/services/">SEO services</a> or more great SEO tips and tricks, visit the <a href="http://www.seo.com/blog">SEO.com blog</a>.</p><p>Time for a little rant.</p>
<p>I&#8217;ve been researching Google&#8217;s initiative to crack-down on websites selling and buying paid links.  I&#8217;ve let myself get a bit riled-up as I&#8217;ve re-discovered the following:</p>
<ol>
<li>Too many people still think Capitalism is somehow inherently evil</li>
<li>Some usually bright people have an amazingly hard time distinguishing between spam and good content</li>
</ol>
<p>I&#8217;m not going to spend a lot of time on why Capitalism is not inherently bad.  <a href="http://knowledgeispower.org/">Go read Mike Mann&#8217;s book on making change</a>&mdash;it&#8217;s a free book (making it appealing even to anti-capitalists).</p>
<p>On point number two I&#8217;ll voice a few more thoughts.  Aaron Wall wrote <a href="http://www.seobook.com/personalized-free-professional-help">an insightful post on new link strategies</a> that people have employed to avoid having to purchase links outright.  Some of the comments to that post just about killed me.</p>
<p>One comment reads, &#8220;It can&#8217;t be long until Google starts detecting these types of strategies.&#8221;  An astute retort followed shortly, &#8220;Never going to happen. What is there to detect? Good content written by an author who writes about the field?  Sorry, writing guest posts/content is as legitimate as it gets.&#8221;</p>
<p>After reading so many on similar blog posts, I got the feeling that there are many people out there who must have been bitten so many times by the spam bug that they can no longer see the difference between junk and good content.</p>
<p>What do people expect?  Should Google be penalizing online newspapers because their journalists get paid to produce the content?  Should Google ban their own site for offering up paid listings?</p>
<p>I think some people have this idea that any website actively trying to get links, traffic, or any other type of attention is spam, or at least in the same category.  They think that any site attempting to draw traffic must be doing so surreptitiously, or behind some clandestine operation.  No so!  These are surely the same people who think <a href="http://slashdot.org/article.pl?sid=08/03/11/0610216&#038;from=rss">Wikipedia would turn to the dark side by posting ads on the site</a>.  I&#8217;ve got news for you people; most of the sites you read that have content worth reading exist because someone is getting paid (refer to the link to Mike Mann&#8217;s book above).</p>
<p>The difference between spam and good content lies in context and relevance&mdash;two things that these spam crying scuttlebutts should be able to determine.  Google doesn&#8217;t claim any artificial intelligence and they seem to be able to do a good job most of the time.</p>
<p>Don&#8217;t get me wrong, I hate spam too.  But you need to know the difference.  Here is a very succinct and simple way to distinguish spam from quality content for those of you who have a hard time  telling he difference:  spam will always appear unsolicited and out of context.  Both attributes must accompany any content for it to be categorized as spam.  If you have a site that has relevant content about a particular subject and it is accompanied by pertinent ads, you are not looking at spam.  Read <a href="http://www.mattcutts.com/blog/how-to-report-paid-links/">this entry</a> by Matt Cutts for other good insights.</p>
<a href='http://www.seo.com/request-a-proposal/?utm_source=seoblog&utm_medium=banner&utm_content=insight&utm_campaign=blogcta'><img width="670" height="116" src="http://www.seo.com/wp-content/uploads/2012/06/Get-Internet-Marketing-Insight-For-Your-Company-SEO.com_.png" class="attachment-blog-header wp-post-image" alt="Get Internet Marketing Insight For Your Company - SEO.com" /></a><p><a href="http://www.seo.com/blog/beware-of-spammers-in-capitalists-clothing/">Beware of Spammers in Capitalist&#039;s Clothing</a> is a post by SEO expert <a rel="author" href="http://www.seo.com/author/peter/">Peter Ehat</a>. For information about our <a href="http://www.seo.com/services/">SEO services</a> or more great SEO tips and tricks, visit the <a href="http://www.seo.com/blog">SEO.com blog</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.seo.com/blog/beware-of-spammers-in-capitalists-clothing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
	</item>
		<item>
		<title>Does SEO Die on Web 3.0?</title>
		<link>http://www.seo.com/blog/google/does-seo-die-on-web-3-point-0/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=does-seo-die-on-web-3-point-0</link>
		<comments>http://www.seo.com/blog/google/does-seo-die-on-web-3-point-0/#comments</comments>
		<pubDate>Tue, 25 Mar 2008 17:51:53 +0000</pubDate>
		<dc:creator>Peter Ehat</dc:creator>
				<category><![CDATA[Google]]></category>
		<category><![CDATA[Search Engine News]]></category>
		<category><![CDATA[Yahoo]]></category>
		<category><![CDATA[meta-data]]></category>
		<category><![CDATA[owl]]></category>
		<category><![CDATA[rdf]]></category>
		<category><![CDATA[semantic web]]></category>
		<category><![CDATA[seo]]></category>

		<guid isPermaLink="false">http://www.seo.com/blog/google/does-seo-die-on-the-semantic-web/</guid>
		<description><![CDATA[<p><p><a href="http://www.seo.com/blog/google/does-seo-die-on-web-3-point-0/">Does SEO Die on Web 3.0?</a> is a post by SEO expert <a rel="author" href="http://www.seo.com/author/peter/">Peter Ehat</a>. For information about our <a href="http://www.seo.com/services/">SEO services</a> or more great SEO tips and tricks, visit the <a href="http://www.seo.com/blog">SEO.com blog</a>.</p><p>Hey, Marty, would you mind parking the DeLorean for me while I finish up this blog post? Thanks. Hi, everyone! I&#8217;ve just come back from the future. Well, not really. I&#8217;ve actually just been reading through a bunch of articles about the Semantic Web as envisioned by Tim Berners-Lee and other brilliant thinkers. My appetite [...]<a href='http://www.seo.com/request-a-proposal/?utm_source=seoblog&utm_medium=banner&utm_content=insight&utm_campaign=blogcta'><img width="670" height="116" src="http://www.seo.com/wp-content/uploads/2012/06/Get-Internet-Marketing-Insight-For-Your-Company-SEO.com_.png" class="attachment-blog-header wp-post-image" alt="Get Internet Marketing Insight For Your Company - SEO.com" /></a></p></p><p><a href="http://www.seo.com/blog/google/does-seo-die-on-web-3-point-0/">Does SEO Die on Web 3.0?</a> is a post by SEO expert <a rel="author" href="http://www.seo.com/author/peter/">Peter Ehat</a>. For information about our <a href="http://www.seo.com/services/">SEO services</a> or more great SEO tips and tricks, visit the <a href="http://www.seo.com/blog">SEO.com blog</a>.</p>]]></description>
				<content:encoded><![CDATA[<p><a href="http://www.seo.com/blog/google/does-seo-die-on-web-3-point-0/">Does SEO Die on Web 3.0?</a> is a post by SEO expert <a rel="author" href="http://www.seo.com/author/peter/">Peter Ehat</a>. For information about our <a href="http://www.seo.com/services/">SEO services</a> or more great SEO tips and tricks, visit the <a href="http://www.seo.com/blog">SEO.com blog</a>.</p><p>Hey, Marty, would you mind parking the DeLorean for me while I finish up this blog post?  Thanks.</p>
<p>Hi, everyone!  I&#8217;ve just come back from the future.  Well, not really.  I&#8217;ve actually just been reading through a bunch of articles about the Semantic Web as envisioned by Tim Berners-Lee and other brilliant thinkers.  My appetite to research this topic was spurred by <a href="http://technology.timesonline.co.uk/tol/news/tech_and_web/article3532832.ece">this article</a> I read about two weeks ago.  It&#8217;s been a fun escape into the world-of-tomorrow.  Some have already assigned the moniker &#8220;Web 3.0&#8243; to the Semantic Web.  Here we go again&#8230;</p>
<p>So did I find anything of value on my futuristic escapade?  Well, I started my trip (as always) by going to see <a href="http://en.wikipedia.org/wiki/Semantic_Web">The Oracle</a> to find out what she thinks of the Semantic Web.  It&#8217;s still unclear to me how people will interact with such a system&mdash;from what I can tell there are no consumer apps yet that handle these types of semantic web interactions.  But according to the Wikipedia article, computers will do most of the menial pairing of search results that we currently do manually.</p>
<p>Funny enough, there are many who believe that this particular vision of the future cannot come to fruition.  Others say it has already begun to happen.  I don&#8217;t know enough about it yet to base an opinion either way, but I do see elements of a semantic web in now widely used web techniques like tagging.</p>
<p>According to Tim Berners-Lee, Google will not survive on the semantic web&mdash;at least not in its current state.  Yahoo even <a href="http://www.ysearchblog.com/archives/000527.html">recently announced</a> that they will begin supporting certain semantic web standards and technologies to let people produce much richer search results.</p>
<p>So if search engines as we know them need to change at the advent of this new Semantic Web, do SEOers need to follow suit?  Will SEO become the task of simply building properly formatted semantic markup for digestion by future search engines?  That could be part of it.  In fact, part of good SEO practices now include creation of semantic based data feeds (think RSS).  And now with the birth of Yahoo&#8217;s open search, website owners will be rewarded for producing more semantic data and suppling it to Yahoo.  I expect Google has something similar in the works.</p>
<p>But how far out is our paradigm shift?  How quickly will the bandwagon pass?  Is there a bandwagon at all?  The more you think about it, the more you think, &#8220;wow, this Web 3.0 is going to be pretty cool!  It&#8217;ll make SEO and search in general a lot cleaner&#8221;.  As I began to ponder all of these new ideas, The Oracle sent me to <a href="http://en.wikipedia.org/wiki/Metacrap">this other article</a>.  Stopped in my tracks.</p>
<p>Mr. Doctorow is right on.  One of the huge problems Google et al currently face is the overabundance of garbage on the web.  This must be what Berners-Lee meant in part when he said, &#8220;&#8230;make sure people aren&#8217;t using their authority to do things that they shouldn&#8217;t be doing&#8221;.  Unfortunately, that&#8217;s much easier said than done.  There will always be people who are trying to game the system.  Website owners of the future will be creating oodles of inaccurate meta-data about their spam sites to trick your computer into pulling bogus information into your data mash-up.  Can you imagine searching for a good Italian restaurant near the place you have a meeting tomorrow at noon and you&#8217;re given a map full of bogus locations all advertising male enhancement pills.  No thanks.</p>
<p>Let&#8217;s get back to the original question quickly: does SEO die on the semantic web?  I think the answer is a resounding no.  In fact, an understanding of keywords, search engines, markup, and semantics will play an even bigger role as time goes on.  But who knows what the real future will bring.</p>
<p>Alright, I&#8217;m outta here.  Where I&#8217;m going I don&#8217;t need&mdash;roads.  But I do need to add some quick semantic metadata to this post before signing off (*throws in another old can and a banana peel*).  OK, I&#8217;m off!</p>
<a href='http://www.seo.com/request-a-proposal/?utm_source=seoblog&utm_medium=banner&utm_content=insight&utm_campaign=blogcta'><img width="670" height="116" src="http://www.seo.com/wp-content/uploads/2012/06/Get-Internet-Marketing-Insight-For-Your-Company-SEO.com_.png" class="attachment-blog-header wp-post-image" alt="Get Internet Marketing Insight For Your Company - SEO.com" /></a><p><a href="http://www.seo.com/blog/google/does-seo-die-on-web-3-point-0/">Does SEO Die on Web 3.0?</a> is a post by SEO expert <a rel="author" href="http://www.seo.com/author/peter/">Peter Ehat</a>. For information about our <a href="http://www.seo.com/services/">SEO services</a> or more great SEO tips and tricks, visit the <a href="http://www.seo.com/blog">SEO.com blog</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.seo.com/blog/google/does-seo-die-on-web-3-point-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
	</item>
		<item>
		<title>Consider the iPhone</title>
		<link>http://www.seo.com/blog/seo-tips/consider-the-iphone/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=consider-the-iphone</link>
		<comments>http://www.seo.com/blog/seo-tips/consider-the-iphone/#comments</comments>
		<pubDate>Thu, 06 Mar 2008 20:00:45 +0000</pubDate>
		<dc:creator>Peter Ehat</dc:creator>
				<category><![CDATA[SEO Tips]]></category>
		<category><![CDATA[accessibility]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[web browsing]]></category>

		<guid isPermaLink="false">http://www.seo.com/blog/consider-the-iphone/</guid>
		<description><![CDATA[<p><p><a href="http://www.seo.com/blog/seo-tips/consider-the-iphone/">Consider the iPhone</a> is a post by SEO expert <a rel="author" href="http://www.seo.com/author/peter/">Peter Ehat</a>. For information about our <a href="http://www.seo.com/services/">SEO services</a> or more great SEO tips and tricks, visit the <a href="http://www.seo.com/blog">SEO.com blog</a>.</p><p>When Building Your Site A few of us here at SEO.com are big Apple fans. The much anticipated announcement today that the iPhone SDK would be released propels the iPhone into competition with a variety of other handheld devices for business and gaming, and publicizes a few interesting facts about mobile web browsing. Apparently the [...]<a href='http://www.seo.com/request-a-proposal/?utm_source=seoblog&utm_medium=banner&utm_content=insight&utm_campaign=blogcta'><img width="670" height="116" src="http://www.seo.com/wp-content/uploads/2012/06/Get-Internet-Marketing-Insight-For-Your-Company-SEO.com_.png" class="attachment-blog-header wp-post-image" alt="Get Internet Marketing Insight For Your Company - SEO.com" /></a></p></p><p><a href="http://www.seo.com/blog/seo-tips/consider-the-iphone/">Consider the iPhone</a> is a post by SEO expert <a rel="author" href="http://www.seo.com/author/peter/">Peter Ehat</a>. For information about our <a href="http://www.seo.com/services/">SEO services</a> or more great SEO tips and tricks, visit the <a href="http://www.seo.com/blog">SEO.com blog</a>.</p>]]></description>
				<content:encoded><![CDATA[<p><a href="http://www.seo.com/blog/seo-tips/consider-the-iphone/">Consider the iPhone</a> is a post by SEO expert <a rel="author" href="http://www.seo.com/author/peter/">Peter Ehat</a>. For information about our <a href="http://www.seo.com/services/">SEO services</a> or more great SEO tips and tricks, visit the <a href="http://www.seo.com/blog">SEO.com blog</a>.</p><h2>When Building Your Site</h2>
<p>A few of us here at SEO.com are big Apple fans.  The much anticipated <a href="http://www.apple.com/pr/library/2008/03/06iphone.html">announcement</a> today that the iPhone SDK would be released propels the iPhone into competition with a variety of other handheld devices for business and gaming, and publicizes a few interesting facts about mobile web browsing.</p>
<p>Apparently the iPhone is the most widely used mobile device for browsing web pages, consuming 71% of all web pages accessed by mobile devices.  Yes, the iPhone does present the web as you would see it from your desktop or laptop computers, but a few considerations will be forefront in the minds of developers as the iPhone continues to gobble up market share.  To name a few:</p>
<p><strong>Use of Flash</strong><br />
Steve Jobs makes it sound like he has no immediate intention of making the iPhone and Flash Player compatible.  You may want to look at your site and make sure you don&#8217;t have essential pieces done in flash&#8211;or that you have iPhone detection and replacement of flash content.  For example, Google Analytics uses flash to display graphs and other data.  It&#8217;d be nice to have some sort of replacement instead of a question mark in the spot of the embedded swf.</p>
<p><strong>Accessibility</strong><br />
You should always make your sites as accessible as possible (for SEO purposes and otherwise).  I know, the iPhone shows pages like your computer does, so you don&#8217;t think paying special attention to the iPhone is important.  But remember, the screen they&#8217;re looking through is much smaller.  I personally like to see the sites I visit on my iPhone without &#8220;special&#8221; formatting.  However, it may be the case that some charts, graphics or features may need an iPhone friendly interface, either for faster user interaction, or better visibility.</p>
<p>I&#8217;m sure a myriad of things will begin to surface as site owners continue to see iPhone agent strings in their stats.  Feel free to comment on what other influences you think the iPhone will or will not have on the way web pages are built and delivered.</p>
<p>P.S. The iPhone user agent string is:<br />
<code>Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit/420+ (KHTML, like Gecko) Version/3.0 Mobile/1A543 Safari/419.3</code></p>
<a href='http://www.seo.com/request-a-proposal/?utm_source=seoblog&utm_medium=banner&utm_content=insight&utm_campaign=blogcta'><img width="670" height="116" src="http://www.seo.com/wp-content/uploads/2012/06/Get-Internet-Marketing-Insight-For-Your-Company-SEO.com_.png" class="attachment-blog-header wp-post-image" alt="Get Internet Marketing Insight For Your Company - SEO.com" /></a><p><a href="http://www.seo.com/blog/seo-tips/consider-the-iphone/">Consider the iPhone</a> is a post by SEO expert <a rel="author" href="http://www.seo.com/author/peter/">Peter Ehat</a>. For information about our <a href="http://www.seo.com/services/">SEO services</a> or more great SEO tips and tricks, visit the <a href="http://www.seo.com/blog">SEO.com blog</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.seo.com/blog/seo-tips/consider-the-iphone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
	</item>
		<item>
		<title>Handling 301 Redirects with PHP</title>
		<link>http://www.seo.com/blog/seo-tips/handling-301-redirects-with-php/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=handling-301-redirects-with-php</link>
		<comments>http://www.seo.com/blog/seo-tips/handling-301-redirects-with-php/#comments</comments>
		<pubDate>Mon, 14 Jan 2008 18:31:23 +0000</pubDate>
		<dc:creator>Peter Ehat</dc:creator>
				<category><![CDATA[SEO Tips]]></category>
		<category><![CDATA[301]]></category>
		<category><![CDATA[301 redirect]]></category>
		<category><![CDATA[404]]></category>
		<category><![CDATA[http status codes]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[seo]]></category>

		<guid isPermaLink="false">http://www.seo.com/blog/seo-tips/handling-301-redirects-with-php/</guid>
		<description><![CDATA[<p><p><a href="http://www.seo.com/blog/seo-tips/handling-301-redirects-with-php/">Handling 301 Redirects with PHP</a> is a post by SEO expert <a rel="author" href="http://www.seo.com/author/peter/">Peter Ehat</a>. For information about our <a href="http://www.seo.com/services/">SEO services</a> or more great SEO tips and tricks, visit the <a href="http://www.seo.com/blog">SEO.com blog</a>.</p><p>What To Do With Your 404 Errors Part 2 of the SEO for PHP Series Blast! I&#8217;m late for my Nunchucks class and I can&#8217;t find my keys! I was pretty sure I left them right here by my laptop. Ah ha, there they are—glad I finally found them. Good thing I did, &#8217;cause I [...]<a href='http://www.seo.com/request-a-proposal/?utm_source=seoblog&utm_medium=banner&utm_content=insight&utm_campaign=blogcta'><img width="670" height="116" src="http://www.seo.com/wp-content/uploads/2012/06/Get-Internet-Marketing-Insight-For-Your-Company-SEO.com_.png" class="attachment-blog-header wp-post-image" alt="Get Internet Marketing Insight For Your Company - SEO.com" /></a></p></p><p><a href="http://www.seo.com/blog/seo-tips/handling-301-redirects-with-php/">Handling 301 Redirects with PHP</a> is a post by SEO expert <a rel="author" href="http://www.seo.com/author/peter/">Peter Ehat</a>. For information about our <a href="http://www.seo.com/services/">SEO services</a> or more great SEO tips and tricks, visit the <a href="http://www.seo.com/blog">SEO.com blog</a>.</p>]]></description>
				<content:encoded><![CDATA[<p><a href="http://www.seo.com/blog/seo-tips/handling-301-redirects-with-php/">Handling 301 Redirects with PHP</a> is a post by SEO expert <a rel="author" href="http://www.seo.com/author/peter/">Peter Ehat</a>. For information about our <a href="http://www.seo.com/services/">SEO services</a> or more great SEO tips and tricks, visit the <a href="http://www.seo.com/blog">SEO.com blog</a>.</p><h2>What To Do With Your 404 Errors</h2>
<h3>Part 2 of the SEO for PHP Series</h3>
<p>Blast!  I&#8217;m late for my Nunchucks class and I can&#8217;t find my keys! I was pretty sure I left them right here by my laptop.  Ah ha, there they are—glad I finally found them.  Good thing I did, &#8217;cause I need the practice.  <a href="http://www.youtube.com/watch?v=qsEZ2lpM0Yw&#038;feature=related">Check me out at last week&#8217;s  class</a>.</p>
<p>Don&#8217;t you hate it when stuff gets lost?  I sure do.  When you&#8217;re sure that something is there and then all of the sudden, 404!  It&#8217;d be helpful to have a little 404 post-it note show up on my shelf when my wallet is not in its place.  Or, when sitting down to dinner I&#8217;d see a big foam 404 cutout where my son should be but is instead still outside playing.</p>
<p>Well, as much as it bugs you, it&#8217;s probably just as bad for your site&#8217;s visitors to find a link somewhere in a search engine or blog, and come to your site just to get zinged by a big 404 message (<a href="http://www.homestarrunner.com/systemisdown.html">the system is down, yo!</a>).</p>
<p>Even cooler than the 404 post-it notes would be little 302 messages, with detailed information pointing me to where the object of my search hides.  I can see it now, “302: Keys temporarily moved between the couch cushions.”  Of course, you never really see 302 messages on the web, but it would be nice in real life.</p>
<p>So why not equip your site with a clever little something to take care of any misplaced pages?  You may even go as far as to write a little script (or borrow the one I&#8217;ll include here) to transform those 404s into 301s and get your users back on the road again.  Here&#8217;s the process I&#8217;d follow:</p>
<ol>
<li>Get yourself a Google account and add your site to your <a href="https://www.google.com/webmasters/tools/docs/en/about.html">webmaster tools</a> if you haven&#8217;t already.</li>
<li>Make a list of 404 errors that your users have come across on your site.</li>
<ul>
<li>Find out what 404 errors Google has found (look through your webmaster tools).</li>
<li>Look in your server logs for other 404 errors.</li>
</ul>
<li>Search through search engine results for problem pages.</li>
<li>Create a PHP “map” page (essentially an array of missing pages and their new locations).</li>
<li>Add a small piece of code before all other code processed on your site to handle redirects.</li>
</ol>
<p class="notes">*A quick side note: right in the middle of typing this entry, I found Nelson&#8217;s enormous water jug here in my office—must have been left here sometime today.  I just sent it back to him with a friendly 302 post-it note attached “302 Redirect: The water jug you&#8217;ve been looking for was temporarily moved to Peter&#8217;s office”. Wow, these notes are sure helpful!  I need to get a patent attorney on the phone quick! Alright, back to the post&#8230;</p>
<p>Remember that not all the 404 messages that are dished out on your server need to be redirected.  Some of them are legitimate status codes for pages people have requested that you really don&#8217;t have on your site.  So sift through and create your list of only the pages you want people to still be able to find.  Once you&#8217;ve identified these pages, organize them into an array map list like so (I&#8217;ve created a file called redir_map.php):</p>
<pre lang="php">$redir_map_arr = array(
  'productsconnect.htm' => 'products',
  'press-releases/press-main.htm' => 'news/press-releases',
  'current-news/news-main.htm' => 'news'
);</pre>
<p>OK, I&#8217;ve only got 3 pages to redirect here in this example, but it should still be pretty fun.  Save the redir_map.php file somewhere that makes sense on your site.  Now on to the implementation.</p>
<p>Depending on the type of structure you have on your site for delivering pages, you&#8217;ll have to find a way to include this little redirection map before ANYTHING else on your site is processed.  This is very important because we&#8217;re going to send some HTTP status codes to the agents requesting pages on our site.  If you&#8217;ve already sent headers, you&#8217;re likely going to run into problems.</p>
<p>I personally like to build sites to redirect all incoming traffic to the index.php page (done using an .htaccess file and explained in a future blog entry).  This keeps my sites <a href="http://en.wikipedia.org/wiki/Don't_repeat_yourself">DRY</a>–I don&#8217;t have to put includes on every page for a header and footer and what not.  So I put the following PHP code in my index page before just about everything else (you&#8217;ll have to determine where to put this script on your own site—just ensure it is the very first piece of code on your site that sends headers):</p>
<pre lang="php">require("redir_map.php");
foreach ($redir_map_arr as $old_url => $map_to){
  if(strpos($_SERVER['REQUEST_URI'], $old_url)){
    header( "HTTP/1.1 301 Moved Permanently" );
    $host  = $_SERVER['HTTP_HOST'];
    $uri   = rtrim(dirname($_SERVER['PHP_SELF']), '/\');
    $query = ($_SERVER['REDIRECT_QUERY_STRING']) ? '?'.$_SERVER['REDIRECT_QUERY_STRING'] : NULL ;
    header("Location: http://$host$uri/$map_to/$query");
    exit;
  }
}</pre>
<p>Alright, as you can see, I&#8217;m requiring the redir_map.php file we created previously.  I then loop through each name value pair in the array (the key as $old_url and the value as $map_to).  Then I look for the page that&#8217;s being requested by the incoming agent, and see if it matches something in my list.  You could write a regular expression for more sophisticated matching, but this works for simple stuff.</p>
<p>  Then comes the meat of this operation.  The first thing I&#8217;m going to do is send a header telling the agent that the file it&#8217;s requesting has been moved permanently.  This way, Google, Yahoo et al will make sure to index the correct page, leaving the old reference url alone.</p>
<p>  The $host, $uri and $query variables should be obvious <span class="notes">(see exception below)</span>.  After setting those, I simply redirect the request to the new location using the <a href="http://www.php.net/header">PHP header function</a> again.</p>
<p>  Last, I exit out of PHP execution.  You&#8217;ll want to do this just to make sure your script doesn&#8217;t continue on with whatever it would have done had you not just redirected your visitor to the new place.</p>
<p>  That&#8217;s it!  I&#8217;m going to leave comments open on this to see what other ideas others may have, or see what others have done for this same problem.  Thanks everyone—and keep an eye on those keys and water-jugs!</p>
<p class="notes">*Note: The script I&#8217;m using passes on any queries that may have been in the old URL. Some people have directives in thier .htaccess files that may conflict with what the script does here. If you run into problems, just comment out line 7 in the example above, and remove /$query  from the header location string on line 8.</p>
<a href='http://www.seo.com/request-a-proposal/?utm_source=seoblog&utm_medium=banner&utm_content=insight&utm_campaign=blogcta'><img width="670" height="116" src="http://www.seo.com/wp-content/uploads/2012/06/Get-Internet-Marketing-Insight-For-Your-Company-SEO.com_.png" class="attachment-blog-header wp-post-image" alt="Get Internet Marketing Insight For Your Company - SEO.com" /></a><p><a href="http://www.seo.com/blog/seo-tips/handling-301-redirects-with-php/">Handling 301 Redirects with PHP</a> is a post by SEO expert <a rel="author" href="http://www.seo.com/author/peter/">Peter Ehat</a>. For information about our <a href="http://www.seo.com/services/">SEO services</a> or more great SEO tips and tricks, visit the <a href="http://www.seo.com/blog">SEO.com blog</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.seo.com/blog/seo-tips/handling-301-redirects-with-php/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
	</item>
		<item>
		<title>How to Get Your PHP Pages Indexed on Google</title>
		<link>http://www.seo.com/blog/seo-tips/how-to-get-your-php-pages-indexed-on-google/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-get-your-php-pages-indexed-on-google</link>
		<comments>http://www.seo.com/blog/seo-tips/how-to-get-your-php-pages-indexed-on-google/#comments</comments>
		<pubDate>Mon, 26 Nov 2007 19:32:06 +0000</pubDate>
		<dc:creator>Peter Ehat</dc:creator>
				<category><![CDATA[SEO Tips]]></category>
		<category><![CDATA[dynamic urls]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[index]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.seo.com/blog/seo-tips/seo-tips-for-php-sites/how-to-get-your-php-pages-indexed-on-google/</guid>
		<description><![CDATA[<p><p><a href="http://www.seo.com/blog/seo-tips/how-to-get-your-php-pages-indexed-on-google/">How to Get Your PHP Pages Indexed on Google</a> is a post by SEO expert <a rel="author" href="http://www.seo.com/author/peter/">Peter Ehat</a>. For information about our <a href="http://www.seo.com/services/">SEO services</a> or more great SEO tips and tricks, visit the <a href="http://www.seo.com/blog">SEO.com blog</a>.</p><p>Part 1 of the SEO for PHP Series Finally, an article that will explain the problem and answer the question that has perplexed and eluded web developers and SEO experts for years. The question: How do I get my PHP pages indexed on Google and other search engines? The Myth Exposed First, I need to [...]<a href='http://www.seo.com/request-a-proposal/?utm_source=seoblog&utm_medium=banner&utm_content=insight&utm_campaign=blogcta'><img width="670" height="116" src="http://www.seo.com/wp-content/uploads/2012/06/Get-Internet-Marketing-Insight-For-Your-Company-SEO.com_.png" class="attachment-blog-header wp-post-image" alt="Get Internet Marketing Insight For Your Company - SEO.com" /></a></p></p><p><a href="http://www.seo.com/blog/seo-tips/how-to-get-your-php-pages-indexed-on-google/">How to Get Your PHP Pages Indexed on Google</a> is a post by SEO expert <a rel="author" href="http://www.seo.com/author/peter/">Peter Ehat</a>. For information about our <a href="http://www.seo.com/services/">SEO services</a> or more great SEO tips and tricks, visit the <a href="http://www.seo.com/blog">SEO.com blog</a>.</p>]]></description>
				<content:encoded><![CDATA[<p><a href="http://www.seo.com/blog/seo-tips/how-to-get-your-php-pages-indexed-on-google/">How to Get Your PHP Pages Indexed on Google</a> is a post by SEO expert <a rel="author" href="http://www.seo.com/author/peter/">Peter Ehat</a>. For information about our <a href="http://www.seo.com/services/">SEO services</a> or more great SEO tips and tricks, visit the <a href="http://www.seo.com/blog">SEO.com blog</a>.</p><h2>Part 1 of the SEO for PHP Series</h2>
<p>Finally, an article that will explain the problem and answer the question that has perplexed and eluded web developers and SEO experts for years.  The question: How do I get my PHP pages indexed on Google and other search engines?</p>
<h3>The Myth Exposed</h3>
<p>First, I need to point out that there has always been a myth surrounding Google&#8217;s indexing (or non-indexing) of PHP pages, specifically dynamically generated pages.  I suppose my mysterious title to this entry doesn&#8217;t help the matter, because Google is easily able to index both dynamically generated PHP pages and PHP pages with dynamically generated content (<a href="#technical_explanation">read further down for an explanation</a>).  There are some good practices that webmasters should follow to make sure their site&#8217;s pages are clearly readable, but there&#8217;s not really a big mystery.  I&#8217;ll explain in later posts in this series how you can make your PHP site Google ready.  In the mean time, Google (as always) is smart enough to sort through most of the garbage that people sometimes post to the web.  So why write an article you ask?  Because there are so many people who still believe this myth, and it&#8217;s about time someone pointed out that Google has already set the record straight.</p>
<p>It&#8217;s easy to see how such a myth could be perpetuated over time.  Google did have an excerpt from their  Webmaster Guide back in 2006 that said Google had a more difficult time indexing pages with a query string in the URL (for those of you not familiar with URL parts, <a href="http://www.mattcutts.com/blog/seo-glossary-url-definitions/">read this entry</a> by Google&#8217;s Matt Cutts).  Google once warned:</p>
<p><em>“Don&#8217;t use &#8220;&#038;id=&#8221; as a parameter in your URLs, as we don&#8217;t include these pages in our index.”</em></p>
<p>Ah ha!  The spark that started the fire.  So, Google really did have a hard time at some point indexing PHP pages?  Well, not so fast Mr. or Ms. Webmaster pants.  They didn&#8217;t say anything about dynamically generated pages, or even PHP for that matter.  They simply said it&#8217;s best not to use certain query strings in your URLs.  It has been exaggerated and expanded over the years to somehow include the idea that Google is wholly incapable of indexing pages processed by PHP.  This notion was false then, and is false now.  In fact, Google has now even <a href="http://googlewebmastercentral.blogspot.com/2006/10/update-to-our-webmaster-guidelines.html">removed that line</a> from the Webmaster Guide and has stated clearly that it&#8217;s OK to have dynamically generated pages.</p>
<p>People who actually still believe that PHP cannot be indexed by Google have obviously never performed this query:</p>
<p><em><a href="http://www.google.com/search?q=inurl%3A+php&#038;ie=utf-8&#038;oe=utf-8">inurl: .php</a></em></p>
<p>What?  That&#8217;s an outrage!  Google doesn&#8217;t index PHP pages!  Especially not that first one that is dynamically generated and contains &#8220;?id=&#8221; in the query string!  OK, now I&#8217;ll remove my tongue from my cheek so I can finish up here.</p>
<p><a name="technical_explanation" style="visibility:none; display:inline;"></a></p>
<h3>A Technical Explanation</h3>
<p>Alright, here&#8217;s where we&#8217;ve got to get a little technical.  Don&#8217;t be afraid, it&#8217;s not too bad.  After all, it was the people who weren&#8217;t willing to explore a little bit of the technical stuff that perpetuated this myth in the first place.  Be a part of the solution and keep reading!</p>
<p>First, there is a real difference between dynamically generated pages and pages with dynamically generated content.  It is often the case that dynamically generated pages will also have dynamically generated content, but not all pages with dynamically generated content have to be themselves dynamically generated.  Confused?  Let me explain.</p>
<p><strong>Pages With Dynamic Content</strong></p>
<p>Let&#8217;s say I have a file called faqs.php that actually takes up memory on my server, and contains PHP code that performs a certain function.  Maybe the code accesses a database, obtains a list of FAQs, and prints them out to the screen.  This is an example of a non-dynamically generated page that dynamically generates content.  In this case, the faqs.php script is only going to consistently deliver FAQs to the user.  It will probably never show a terms of use, contact, or about page.  It&#8217;s for FAQs.</p>
<p>Google has never had a problem indexing these types of pages, even though they are created using PHP.  The fact that PHP is involved is a moot point because all the content has been delivered to the browser or search engine spider after the content was compiled together on the server.  The spiders don&#8217;t care what happens behind the scenes to deliver my page, especially when I have this simple URL: http://www.mysite.com/faqs.php.  For all intents and purposes, this page is the exact same thing as a static HTML page delivered from the server to the spider or browser (the only difference is the .php extension in the filename).   Even the file extension is a non-issue considering the fact that a webmaster can <a href="http://www.thesitewizard.com/archive/dynamicstatic.shtml">setup Apache to execute and deliver PHP pages with the .html extension</a>, which would totally mask the fact that the page content has been delivered dynamically.</p>
<p><strong>Dynamically Generated Pages</strong></p>
<p>Now, let&#8217;s imagine I have a file called index.php, and it has a query string appended to it so it looks like this: index.php?page=faqs.  This script might be producing what people would call a dynamically generated page.  It too, in this case, delivers content to the screen, also showing information about FAQs, just like our previous example.  The difference with this index.php page is that it&#8217;s probably not specific to just FAQs.  It&#8217;s probably also used to deliver the terms of use, contact us, and about pages respectively.  In theory (but not in good practice), you could have an entire website of thousands of pages that come from one single PHP script.</p>
<p>These are the types of pages that Google has warned about in the past.  While they&#8217;ve never had problems with the types of pages described previously, you can see how Google may have had a hard time in the past, or just simply refused to keep track of and index these types of pages, especially if multiple name value pairs exist in the query string.</p>
<h3>Short and Simple Answers</h3>
<p>OK, your head may be spinning after all that rigmarole.  Let&#8217;s look at how Google themselves answers the question: “<a href="http://www.google.com/support/webmasters/bin/answer.py?hl=en&#038;answer=34431">Does Google index dynamic pages?</a>”  The short and simple answer is <em>yes</em>.</p>
<p>Well, would you look at that!  Google themselves set the record straight once and for all.  I don&#8217;t necessarily like their suggestion of making static pages with the same content as your dynamic pages (if that was an option there&#8217;d be little reason to use dynamic pages in the first place).  Regardless, Google essentially says to all you wild and wacky webmasters with equally wacky URLs, “Go ahead and make them dynamic pages! We&#8217;ll round-up and corral your content free of charge.”</p>
<p>So Google has caught up to the Wild Wild Web in this regard—and they&#8217;ve done so just as a new frontier is emerging.  One of pretty URLs and simple-to-index PHP sites and pages.  One where dynamic pages and dynamic content are still the staple, but with a new 2.0 friendly flare.  Check back soon for the next article where I&#8217;ll explain how to create a simple PHP site that implements some of these newfangled things, and employs some suggestions from Google Webmaster Central.</p>
<a href='http://www.seo.com/request-a-proposal/?utm_source=seoblog&utm_medium=banner&utm_content=insight&utm_campaign=blogcta'><img width="670" height="116" src="http://www.seo.com/wp-content/uploads/2012/06/Get-Internet-Marketing-Insight-For-Your-Company-SEO.com_.png" class="attachment-blog-header wp-post-image" alt="Get Internet Marketing Insight For Your Company - SEO.com" /></a><p><a href="http://www.seo.com/blog/seo-tips/how-to-get-your-php-pages-indexed-on-google/">How to Get Your PHP Pages Indexed on Google</a> is a post by SEO expert <a rel="author" href="http://www.seo.com/author/peter/">Peter Ehat</a>. For information about our <a href="http://www.seo.com/services/">SEO services</a> or more great SEO tips and tricks, visit the <a href="http://www.seo.com/blog">SEO.com blog</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.seo.com/blog/seo-tips/how-to-get-your-php-pages-indexed-on-google/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
	
	</item>
	</channel>
</rss>
