
	<?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>ChadCardwell.net</title>
	<atom:link href="http://chadcardwell.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://chadcardwell.net</link>
	<description>Barely a website since 2007</description>
	<lastBuildDate>Thu, 08 Sep 2011 22:39:54 +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>Pretty Permalinks, WordPress, and EasyCGI</title>
		<link>http://chadcardwell.net/pretty-permalinks-wordpress-and-easycgi/</link>
		<comments>http://chadcardwell.net/pretty-permalinks-wordpress-and-easycgi/#comments</comments>
		<pubDate>Tue, 23 Aug 2011 16:23:35 +0000</pubDate>
		<dc:creator>Chad</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://chadcardwell.net/?p=43</guid>
		<description><![CDATA[As it turns out, not many folks are using WordPress on an EasyCGI hosted IIS server, so getting &#8220;pretty permalinks&#8221; to work properly was a bit tricky. Combine that with the fact that I know very little about this stuff, &#8230; <a href="http://chadcardwell.net/pretty-permalinks-wordpress-and-easycgi/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>As it turns out, not many folks are using WordPress on an <a href="http://www.easycgi.com/" target="_blank">EasyCGI</a> hosted IIS server, so getting &#8220;<a href="http://codex.wordpress.org/Using_Permalinks" target="_blank">pretty permalinks</a>&#8221; to work properly was a bit tricky. Combine that with the fact that I know very little about this stuff, and things got a bit interesting. However, after a bit of research, patience, and tech support, I finally got it all working.</p>
<p>First of all, EasyCGI&#8217;s Windows-hosted IIS servers <strong>do not</strong> support the <em>mod_rewrite</em> method that most folks use for permalinks. (I figured that out pretty quickly.) I then tried <a href="http://learn.iis.net/page.aspx/466/enabling-pretty-permalinks-in-wordpress/" target="_blank">this fix</a>, but I had no luck with it.</p>
<p>I finally ended up using the custom 404 page method described <a href="http://einaregilsson.com/2007/07/30/pretty-wordpress-permalinks-on-iis/" target="_blank">here</a>, <a href="http://ikailo.com/94/url-modrewrite-workaround-iis-60/" target="_blank">here</a>, and <a href="http://www.keyboardface.com/archives/2007/09/07/update-for-wordpress-permalinks-on-iis/" target="_blank">here</a>. Those sites all link back to one other, so I&#8217;m not sure which one originally cracked the code, but I&#8217;m glad they did!</p>
<p>Specifically, I ended up creating a custom <em>wp-404-handler.php</em> file and placed it in my root directory. Within it I inserted the following code:</p>
<pre>&lt;?php
$qs = $_SERVER['QUERY_STRING'];
$pos = strrpos($qs, '://');
$pos = strpos($qs, '/', $pos + 4);
$_SERVER['REQUEST_URI'] = substr($qs, $pos);
$_SERVER['PATH_INFO'] = $_SERVER['REQUEST_URI'];
include('index.php');
?&gt;</pre>
<p>I then accessed my IIS Admin Console (via EasyCGI&#8217;s control panel), and I configured the custom 404 error page for the &#8220;/wordpress&#8221; directory (my chosen installation directory for WordPress) to point to &#8220;/wp-404-handler.php&#8221;. I originally tried creating the custom 404 file in the &#8220;/wordpress&#8221; directory, but after some trial and error, I found that it only works when placed in the root directory.</p>
<p>For what it&#8217;s worth, I also tried the updated and longer version of code found <a href="http://ikailo.com/94/url-modrewrite-workaround-iis-60/" target="_blank">here</a>, and I can confirm that it works, too. However, I decided to stick with the shorter version because (1) it works and (2) it has less code. While it may not be as &#8220;robust&#8221; as the longer code solution, my thoughts are that it may be more efficient in the long run. Maybe I&#8217;m wrong?</p>
<p>Throughout the process, I contacted EasyCGI&#8217;s 24&#215;7 live chat support, and they responded immediately and were very quick to assist. Their original solution was to place the following code into an <em>httpd.ini</em> file, which is the same code that would go into an <em>.htaccess</em> file when using the &#8220;usual&#8221; <em>mod_rewrite</em> method (that IIS doesn&#8217;t support):</p>
<pre id="htaccess_sample"># BEGIN WordPress
&lt;IfModule mod_rewrite.c&gt;
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
&lt;/IfModule&gt;
# END WordPress</pre>
<p>However, that didn&#8217;t work for me, so they created a support ticket and one of their higher-level techs got involved. His original solution was to just settle with the &#8220;<a href="http://codex.wordpress.org/Using_Permalinks" target="_blank">almost pretty permalinks</a>&#8221; (which includes <em>index.php</em> in the URL), but I told him about the custom 404 page method. He looked into it and helped me get all of the code in the proper place. Overall, I am very pleased with EasyCGI&#8217;s tech support!</p>
<p>The only quirk with the custom 404 page fix is that invalid URLs now land on a blank page. I&#8217;m not sure how to fix this (or if it&#8217;s really a problem). In the end, I&#8217;m mainly glad that I got pretty permalinks to work.  <img src='http://chadcardwell.net/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><strong>Sources/Credits:</strong><br />
<a title="http://codex.wordpress.org/Using_Permalinks" href="http://codex.wordpress.org/Using_Permalinks" target="_blank">http://codex.wordpress.org/Using_Permalinks</a><br />
<a title="http://einaregilsson.com/2007/07/30/pretty-wordpress-permalinks-on-iis/" href="http://einaregilsson.com/2007/07/30/pretty-wordpress-permalinks-on-iis/" target="_blank">http://einaregilsson.com/2007/07/30/pretty-wordpress-permalinks-on-iis/</a><br />
<a title="http://ikailo.com/94/url-modrewrite-workaround-iis-60/" href="http://ikailo.com/94/url-modrewrite-workaround-iis-60/" target="_blank">http://ikailo.com/94/url-modrewrite-workaround-iis-60/</a><br />
<a title="http://www.keyboardface.com/archives/2007/09/07/update-for-wordpress-permalinks-on-iis/" href="http://www.keyboardface.com/archives/2007/09/07/update-for-wordpress-permalinks-on-iis/" target="_blank">http://www.keyboardface.com/archives/2007/09/07/update-for-wordpress-permalinks-on-iis/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://chadcardwell.net/pretty-permalinks-wordpress-and-easycgi/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Testing Permalinks</title>
		<link>http://chadcardwell.net/testing-permalinks/</link>
		<comments>http://chadcardwell.net/testing-permalinks/#comments</comments>
		<pubDate>Tue, 23 Aug 2011 04:49:55 +0000</pubDate>
		<dc:creator>Chad</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://chadcardwell.net/?p=39</guid>
		<description><![CDATA[I know the links are broken right now&#8230; It&#8217;s being worked on!]]></description>
			<content:encoded><![CDATA[<p>I know the links are broken right now&#8230;</p>
<p>It&#8217;s being worked on! <img src='http://chadcardwell.net/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://chadcardwell.net/testing-permalinks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Site Redesign</title>
		<link>http://chadcardwell.net/site-redesign/</link>
		<comments>http://chadcardwell.net/site-redesign/#comments</comments>
		<pubDate>Mon, 22 Aug 2011 15:38:33 +0000</pubDate>
		<dc:creator>Chad</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://chadcardwell.net/blog//?p=1</guid>
		<description><![CDATA[Hey folks! Thanks for stopping by.   If you&#8217;re here because of my LEGO MINDSTORMS NXT tutorials (on YouTube), then click the link for more information. For the rest of you, I&#8217;ve overhauled the site and would like to start adding &#8230; <a href="http://chadcardwell.net/site-redesign/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Hey folks! Thanks for stopping by.   <img src='http://chadcardwell.net/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>If you&#8217;re here because of my <a title="LEGO MINDSTORMS NXT" href="http://chadcardwell.net/lego-mindstorms-nxt/">LEGO MINDSTORMS NXT</a> tutorials (on YouTube), then click the link for more information.</p>
<p>For the rest of you, I&#8217;ve overhauled the site and would like to start adding more content as time goes on. In the mean time, you can check out <a title="link to e-portfolio" href="http://www.chadcardwell.net/portfolio/" target="_blank">my e-portfolio</a> (created as a college assignment&#8230; to organize college assignments). For now, it will remain as a stand-alone sub-site until I figure out what to do with it.</p>
<p>Chad</p>
]]></content:encoded>
			<wfw:commentRss>http://chadcardwell.net/site-redesign/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

