<?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>Abel Mohler &#187; Web Development</title>
	<atom:link href="http://abelmohler.com/category/web-development/feed/" rel="self" type="application/rss+xml" />
	<link>http://abelmohler.com</link>
	<description>My Journal</description>
	<lastBuildDate>Mon, 14 Feb 2011 18:25:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>How a Blog can Improve your Site and How it Can&#8217;t</title>
		<link>http://abelmohler.com/2010/03/01/how-a-blog-can-improve-your-site-and-how-it-cant/</link>
		<comments>http://abelmohler.com/2010/03/01/how-a-blog-can-improve-your-site-and-how-it-cant/#comments</comments>
		<pubDate>Tue, 02 Mar 2010 01:04:53 +0000</pubDate>
		<dc:creator>Abel</dc:creator>
				<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://abelmohler.com/?p=54</guid>
		<description><![CDATA[I&#8217;ve built several sites that have blogs built as a section of the site.  Giving a site a blog these days is only par-for-the-course.  With WordPress of course, this task is extremely easy, making it match the rest of your site is a simple matter in the right hands.  I wonder though how much of [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://abelmohler.com/wp-content/uploads/2010/03/q-mark.jpg"><img class="alignright size-full wp-image-55" title="q-mark" src="http://abelmohler.com/wp-content/uploads/2010/03/q-mark.jpg" alt="" width="150" height="150" /></a>I&#8217;ve built several sites that have blogs built as a section of the site.  Giving a site a blog these days is only par-for-the-course.  With WordPress of course, this task is extremely easy, making it match the rest of your site is a simple matter in the right hands.  I wonder though how much of this is a wasted effort?</p>
<p>Let&#8217;s say you have a &#8220;normal&#8221; home page, with an introductory paragraph, heading, title, etc, telling you what the site is about. This content doesn&#8217;t change much, though you may adjust it from time to time to refine your message and make it clearer to your users.<span id="more-54"></span></p>
<p>Now, what if you then decide to build a blog for the site. You put it in a directory, /news/, linked to from your main navigation. You write away. The blog will gradually become its own section, a pile of content. You&#8217;ve only linked to it from your navigation, and it isn&#8217;t really contributing to the overall nature of the rest of the site.  Users will tend to either stay in the blog or stay in the rest of your site.</p>
<p>Instead of this, what if you instead used the categories of your blog, to display headlines and summaries of recent content on your various pages, even if it just the home page.  Naturally linking to sections of articles, either with certain tags or topics, or just because they are new, is surely good for users, and will make your blog more a part of your site.</p>
<p>Don&#8217;t let your blog become an orphan.  No one will want to read it if it doesn&#8217;t flow with the rest of your information.  Tools like WordPress are, after all, just a means of more easily publishing HTML pages.  It is certainly not a magic wand that will increase your rankings.</p>
]]></content:encoded>
			<wfw:commentRss>http://abelmohler.com/2010/03/01/how-a-blog-can-improve-your-site-and-how-it-cant/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How not to use the canonical tag&#8230;</title>
		<link>http://abelmohler.com/2009/04/14/how-not-to-use-the-canonical-tag/</link>
		<comments>http://abelmohler.com/2009/04/14/how-not-to-use-the-canonical-tag/#comments</comments>
		<pubDate>Wed, 15 Apr 2009 03:12:38 +0000</pubDate>
		<dc:creator>Abel</dc:creator>
				<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://abelmohler.com/?p=18</guid>
		<description><![CDATA[I&#8217;ve had an interesting if not exactly enjoyable time transferring a popular site onto a new host.  If you have ever changed hosts, you know it can be a sometimes frustrating and patience-consuming task.  This is especially true when the site has been built over many years of time. Upon completing the move, we soon [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve had an interesting if not exactly enjoyable time transferring a popular site onto a new host.  If you have ever changed hosts, you know it can be a sometimes frustrating and patience-consuming task.  This is especially true when the site has been built over many years of time.</p>
<p>Upon completing the move, we soon learned that there were many more 404 errors than there should have been.  <span id="more-18"></span>The old host did not provide .htaccess support *cough* Yahoo! *cough*, but happened to rewrite many of the URIs in a way that  was not happening in the new environment, hence the 404&#8242;s.  For example, /index.html did not exist, but there were about 60 external links pointing at this exact page, which had existed in a prior incarnation.  The old server saw that /index.html did not exist, then requested index.php instead, and redirected to /.  This was, in retrospect, the desired behavior.</p>
<p>Something I failed to consider is that different hosts request index documents in a different order.   The new host first looked for /index.html, before moving on to other options.  Because I didn&#8217;t immediately realize this, it ended up causing big problems.</p>
<p>This line in .htaccess caused an infinite loop:</p>
<p><code>Redirect 301 /index.html http://www.mywebsite.com/</code></p>
<p>As it turns out, even if the /index.html document doesn&#8217;t exist, the very act of redirecting from it makes the server think that it does.  Because the server now thought /index.html existed, requesting the website root cause the browser to quickly crash.  My solution was to instead redirect straight to the /index.php file.</p>
<p><code>Redirect 301 /index.html http://www.mywebsite.com/index.php</code></p>
<p>I then, in my infinite wisdom, added this tag to the top of /index.php:</p>
<p><code>&lt;link rel="canonical" href="http://www.mywebsite.com/" /&gt;</code></p>
<p>The home page of the website was soon removed from the search-index.  After all, everything is redirecting to /index.php, a totally separate URI, and a page which now said it was nothing but a duplicate of a web address that no longer existed.  That is why this post is titled:</p>
<p><strong>How not to use the &lt;rel=&#8221;canonical&#8221;&gt; tag</strong>!</p>
]]></content:encoded>
			<wfw:commentRss>http://abelmohler.com/2009/04/14/how-not-to-use-the-canonical-tag/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

