<?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>SkeyMedia &#187; permalinks</title>
	<atom:link href="http://skeymedia.com/tag/permalinks/feed/" rel="self" type="application/rss+xml" />
	<link>http://skeymedia.com</link>
	<description>Blogging about Web Development and Website Management &#38; Monetization</description>
	<lastBuildDate>Sun, 20 Sep 2009 23:18:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>WordPress Permalinks on IIS with ISAPI_Rewrite</title>
		<link>http://skeymedia.com/permalinks-iis-isapi/</link>
		<comments>http://skeymedia.com/permalinks-iis-isapi/#comments</comments>
		<pubDate>Thu, 05 Jun 2008 16:50:46 +0000</pubDate>
		<dc:creator>brian</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Server Administration]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[ISAPI Rewrite]]></category>
		<category><![CDATA[permalinks]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://skeymedia.com/permalinks-iis-isapi/</guid>
		<description><![CDATA[I&#8217;ve run WordPress here on my CentOS box for nearly 4 years and am quite familiar with the software. Recently, I had a client on a Windows system request a blog be added to their web store. Their webstore is written in ASP and runs on windows. They wanted to stay on the same domain [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve run WordPress here on my CentOS box for nearly 4 years and am quite familiar with the software.  Recently, I had a client on a Windows system request a blog be added to their web store.  Their webstore is written in ASP and runs on windows.   They wanted to stay on the same domain for SEO purposes, (thus site.com/blog/ instead of blog.site.com or a new .com).  Without the subdomain or new IP, there&#8217;s no way to change DNS for a subdirectory to a different server.  This meant I had to get it working on IIS.</p>
<p>Native installations for apache tend not to port well (or perhaps, easily) over to windows/IIS.  Thankfully, ISAPI3 from HeliconTech.com supports .htaccess files and makes the job a little easier.  WordPress works fine on windows/IIS until you want nice permalinks.</p>
<p>After MUCH searching, testing, and error log analysis, I&#8217;ve got a working solution for Windows Server 2003 with ISAPI_Rewrite 3.1.x, running php 5.2.x and mysql 5.0.x community.</p>
<ol>
<li>index.php should be set up in IIS as a default document (same place you find default.asp, index.htm, etc)</li>
<li>edit wp-settings.php<br />
Find:<br />
<pre><code>&lt;?php
</code></pre><br />
at the very top of the file.</p>
<p>Replace with:<br />
<pre><code>&lt;?php
//*****************************
//&nbsp;&nbsp;&nbsp;&nbsp;IIS FIX
//
$_SERVER[&#039;REQUEST_URI&#039;] = $_SERVER[&#039;HTTP_X_REWRITE_URL&#039;];
//*****************************
</code></pre></li>
<li>create the following htaccess file with the Helicon Manager:<br />
<pre><code>
RewriteEngine On

#RewriteBase /

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule . - [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
RewriteRule . /blog/index.php [L]
</code></pre></p>
<ul>
<li><strong>Note:</strong>  You may need to alter the RewriteBase or the last rule to your specific location.   In my particular case, I was installed on domain.com/blog/</li>
</ul>
</li>
</ol>
<p>From here, you can edit your permalink structure as you normally would.   If the default options has index.php/ as part of the rule, you can remove that.</p>
]]></content:encoded>
			<wfw:commentRss>http://skeymedia.com/permalinks-iis-isapi/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>
