﻿<?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>Girish Gangadharan &#187; IIS</title>
	<atom:link href="http://giri.sh/wp-404-handler.php/category/iis/feed/?404;http://giri.sh:80/category/iis/feed/" rel="self" type="application/rss+xml" />
	<link>http://giri.sh</link>
	<description>Did you expect something witty here?</description>
	<lastBuildDate>Mon, 26 Jul 2010 20:35:59 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to set up clean URLs for a Wordpress site in IIS</title>
		<link>http://giri.sh/2008/04/10/how-to-set-up-clean-urls-for-a-wordpress-site-in-iis/</link>
		<comments>http://giri.sh/2008/04/10/how-to-set-up-clean-urls-for-a-wordpress-site-in-iis/#comments</comments>
		<pubDate>Thu, 10 Apr 2008 05:41:44 +0000</pubDate>
		<dc:creator>girish</dc:creator>
				<category><![CDATA[IIS]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Windows 2003]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://giri.sh/?p=50</guid>
		<description><![CDATA[As promised in the previous post, here&#8217;s what you need to do to get clean URLs for WP in IIS.

Create a new PHP file wp-404-handler.php in the root folder (in case you are not sure, this is the folder that has &#8220;wp-admin&#8221;, &#8220;wp-content&#8221;, &#8220;wp-includes&#8221; sub folders and bunch of other php files ) and copy [...]]]></description>
			<content:encoded><![CDATA[<p>As promised in the previous post, here&#8217;s what you need to do to get clean URLs for WP in IIS.</p>
<ol>
<li>Create a new PHP file wp-404-handler.php in the root folder (in case you are not sure, this is the folder that has &#8220;wp-admin&#8221;, &#8220;wp-content&#8221;, &#8220;wp-includes&#8221; sub folders and bunch of other php files ) and copy paste the following code in it.&lt;?php<br />
$qs = $_SERVER['QUERY_STRING'];<br />
$pos = strrpos($qs, &#8216;://&#8217;);<br />
$pos = strpos($qs, &#8216;/&#8217;, $pos + 4);<br />
$_SERVER['REQUEST_URI'] = substr($qs, $pos);<br />
$_SERVER['PATH_INFO'] = $_SERVER['REQUEST_URI'];<br />
include(&#8217;index.php&#8217;);<br />
?&gt;</li>
<li>Open IIS manager &#8211; Expand local computer &#8211; Expand Web Sites &#8211; Right click on your site &#8211; Click Properties &#8211; Click Custom Errors tab &#8211; Select 404. (See image below)<img src="http://giri.sh/images/custom-errors.png" alt="IIS Website Custom errors tab" width="472" height="458" /></li>
<li>Click Edit &#8211; Set Message Type to &#8220;URL&#8221; and URL to &#8220;/&#8221; (See image below)<img src="http://giri.sh/images/404-edit.png" alt="404 edit properties" width="392" height="230" /></li>
<li>Click OK.</li>
<li>Now login to your WordPress admin control panel. Click Settings and click Permalink (wp-admin/options-permalink.php)</li>
<li>Select &#8220;Custom structure&#8221; and set the text to &#8220;/%year%/%monthnum%/%day%/%postname%/&#8221;</li>
<li>And you are done! Your site should now have clean URLs like this site does.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://giri.sh/2008/04/10/how-to-set-up-clean-urls-for-a-wordpress-site-in-iis/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
