<?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>The Florida Belts &#187; permalinks</title>
	<atom:link href="http://www.flbelt.com/tag/permalinks/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.flbelt.com</link>
	<description>The personal blogs of Loretta, Wes, Logan, and Gavin Belt.</description>
	<lastBuildDate>Tue, 22 Nov 2011 02:49:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>GoDaddy WordPress permalinks and a custom 404 page</title>
		<link>http://www.flbelt.com/2009/04/12/godaddy-wordpress-permalinks-and-a-custom-404-page/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=godaddy-wordpress-permalinks-and-a-custom-404-page</link>
		<comments>http://www.flbelt.com/2009/04/12/godaddy-wordpress-permalinks-and-a-custom-404-page/#comments</comments>
		<pubDate>Sun, 12 Apr 2009 14:05:03 +0000</pubDate>
		<dc:creator>Wes</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[custom 404]]></category>
		<category><![CDATA[godaddy]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[permalinks]]></category>
		<category><![CDATA[wordpess]]></category>

		<guid isPermaLink="false">http://www.flbelt.com/?p=187</guid>
		<description><![CDATA[Yesterday, I spent some time configuring permalinks in WordPress and setting up a custom 404 error page. The GoDaddy default 404 page is lame. I also wanted to add some JavaScript that Google provides to make some suggestions and ultimately provide a Google search of the site when the page you are looking for can [...]]]></description>
			<content:encoded><![CDATA[<fb:like href='http://www.flbelt.com/2009/04/12/godaddy-wordpress-permalinks-and-a-custom-404-page/' send='false' layout='button_count' show_faces='true' width='450' height='65' action='like' colorscheme='light' font='lucida+grande'></fb:like><p>Yesterday, I spent some time configuring permalinks in WordPress and setting up a custom 404 error page.  The GoDaddy <a href="http://sites.securepaynet.net/404.html">default 404 page is lame</a>.  I also wanted to add some JavaScript that <a href="http://www.google.com/support/webmasters/bin/answer.py?answer=93644">Google provides</a> to make some suggestions and ultimately provide a Google search of the site when the page you are looking for can not be found.<br />
<span id="more-187"></span><br />
First, Google provided me with this code block to include in my custom 404.</p>
<pre class="brush: jscript; title: ; notranslate">&lt;script type=&quot;text/javascript&quot;&gt;
var GOOG_FIXURL_LANG = 'en';
var GOOG_FIXURL_SITE = 'http://www.flbelt.com/';
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
src=&quot;http://linkhelp.clients.google.com/tbproxy/lh/wm/fixurl.js&quot;&gt;&lt;/script&gt;
</pre>
<p>I was able to edit my theme 404.php file using WordPress Admin -&gt; Appearance -&gt; Editor, and selecting 404.php on the right.  I added the JavaScript from Google and the php snippet below at the top to make the pages more search engine friendly (so they would return the proper 404 status code, rather than 200 OK when serving up the page)</p>
<pre class="brush: php; title: ; notranslate">&lt;?php
header(&quot;HTTP/1.0 404 Not Found&quot;);
header(&quot;Status: 404 Not Found&quot;);
get_header(); ?&gt;</pre>
<p>Now came the tricky part, when I would go to the GoDaddy control panel choose 404 Error Behavior, select custom and input /index.php?error=404 or /?error=404 as required by WordPress, GoDaddy would return an error and say that my custom page could not contain a question mark!</p>
<p>After searching around a bit, I decided to try to add the error page to .htaccess since GoDaddy would not support the option I was looking for.  So I created a .htaccess in the root of my website with the following.</p>
<pre class="brush: plain; title: ; notranslate">
ErrorDocument 404 /?error=404
</pre>
<p>But in spite of the information in the .htaccess GoDaddy still seemed to redirect to the old error page.  Now I was stumped and turned to Google.</p>
<p>There I found <a href="http://askowen.info/2008/05/make-wordpress-permalinks-work-on-godaddy/">this blog entry</a> showed the way to disable GoDaddy&#8217;s 404 handling and allow requests to pass to your .htaccess was to select the &#8220;Use home page&#8221; option (not documented on GoDaddy&#8217;s help portal btw).</p>
<p>Then I found <a href="http://www.queenofkludge.com/wordpress-permalinks-godaddy-htaccess-file-patience-required/">this blog entry</a> which pointed out the GoDaddy&#8217;s servers only refresh the .htaccess every so often.  Their advice, just wait a little bit (was about 15 minutes for me) after you update/add an .htaccess before testing.</p>
<p>Finally it was working!  After all that I was even able to turn on more descriptive permalinks in WordPress (which rely on .htaccess working properly also) and that is working now too!</p>
<p>You can use <a href="http://www.flbelt.com/wes">this link</a> to see our custom 404 page.  Took a little more time than I had wanted, but im happy with the end result!</p>
<fb:like href='http://www.flbelt.com/2009/04/12/godaddy-wordpress-permalinks-and-a-custom-404-page/' send='false' layout='button_count' show_faces='true' width='450' height='65' action='like' colorscheme='light' font='lucida+grande'></fb:like>]]></content:encoded>
			<wfw:commentRss>http://www.flbelt.com/2009/04/12/godaddy-wordpress-permalinks-and-a-custom-404-page/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

