<?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"
	>

<channel>
	<title>DEAN LEE:/DEV/BLOG &#187; mod_rewrite</title>
	<atom:link href="http://www.deanlee.cn/tag/mod_rewrite/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.deanlee.cn</link>
	<description>mount /dev/brain &#124;&#124; tail -f /var/log/thoughts &#62;&#62; /pub/www</description>
	<pubDate>Fri, 30 Dec 2011 13:27:51 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
	<language>en</language>
	<atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/>		<item>
		<title>wp_url_rewriting:URL Rewriting for WordPress under IIS (V 2.1)</title>
		<link>http://www.deanlee.cn/wordpress/url-rewriting-for-wordpress-under-iis/</link>
		<comments>http://www.deanlee.cn/wordpress/url-rewriting-for-wordpress-under-iis/#comments</comments>
		<pubDate>Sat, 02 Sep 2006 09:00:39 +0000</pubDate>
		<dc:creator>Dean Lee</dc:creator>
		
		<category><![CDATA[wordpress]]></category>

		<category><![CDATA[IIS]]></category>

		<category><![CDATA[isapi-filter]]></category>

		<category><![CDATA[mod_rewrite]]></category>

		<category><![CDATA[plugin]]></category>

		<category><![CDATA[seo]]></category>

		<category><![CDATA[url-rewriting]]></category>

		<category><![CDATA[windows-server]]></category>

		<guid isPermaLink="false">http://www.deanlee.cn/2006/09/02/url-rewriting-for-wordpress-under-iis/</guid>
		<description><![CDATA[This ISAPI filter removes the index.php from WordPress permalinks on Windows IIS,making your permalinks more pretty and SEO friendly.
Because IIS does not support mod_rewrite module for rewriting URLs, if you are running WordPress on Windows IIS,whenever you try to use Permalinks, you always get something like this:
http://www.yourdomain.com/index.php/2006/09/02/&#8230;../
this ISAPI filter can remove ugly &#34;index.php&#34; from the [...]]]></description>
			<content:encoded><![CDATA[<p>This ISAPI filter removes the index.php from <a href="http://www.wordpress.org" target="_blank">WordPress</a> permalinks on Windows IIS,making your permalinks more pretty and SEO friendly.</p>
<p>Because IIS does not support mod_rewrite module for rewriting URLs, if you are running WordPress on Windows IIS,whenever you try to use Permalinks, you always get something like this:</p>
<p>http://www.yourdomain.com/<strong>index.php</strong>/2006/09/02/&#8230;../</p>
<p>this ISAPI filter can remove ugly &quot;index.php&quot; from the URL automatically.it&#8217;s easy to use,just install it and no further configuration is necessary.</p>
<p class="download"><a title="download wp_url_rewriting" href="http://code.google.com/p/wp-url-rewriting-on-iis/downloads/list" target="_blank">download wp_url_rewriting</a></p>
<p><strong>Key benefits:</strong></p>
<ul>
<li>Speed.<br />
    <br />this URL Rewriting engine is writing in C++,because it&#8217;s designed dedicated for WordPress,so the program&#8217;s logic is very simple and no regular expression is used.it&#8217;s extremely faster than other rewriting engines on the IIS platform. </li>
<li>Support Multiple WordPress sites on one server. </li>
<li>No configuration is needed<br />
    <br />This URL Rewriting engine will automatically detect all WordPress sites on your server,and generate URL rewriting rules for each of them. </li>
</ul>
<p><strong>Living Demo</strong></p>
<p>You can take my site as a living demo, navigate through my sites,watch the &#8216;pretty&#8217; address in the browser.</p>
<p><strong>Limitation</strong></p>
<p>You must have administrator privileges on the target server in order to install this plugin.</p>
<p><strong>Installation</strong></p>
<p>1). Copy <strong>wp-url-rewriting.dll</strong> to the target machine and register it as an ISAPI filter using IIS MMC snap-in. wp-url-rewriting.dll can be registered at either the site level or the global level.Note:if WordPress is not installed in the root directory of your site,you should setup it as a virtual directory.</p>
<p>2). after register,Login to your WordPress admin panel-&gt;options-&gt;Permalinks,make sure you have removed the index.php from your permalink structure.</p>
<p>3). Do a little hack to WordPress file &#8216;link-template.php&#8217; to make paging works well for categories:(<strong><font color="#ff0000">NOTE: You don&#8217;t need to do this step if you are using WordPress 2.3.0 or newer</font></strong>)</p>
<p>open file /wp-includes/link-template.php and find the following code:</p>
<pre class="prettyprint">function get_pagenum_link($pagenum = 1) {

 global $wp_rewrite;

 $qstr = $_SERVER['REQUEST_URI'];

 $page_querystring = "paged";

 ...

}</pre>
<p>
  <br />Replace it with: </p>
<p></p>
<pre class="prettyprint">function get_pagenum_link($pagenum = 1) {

 global $wp_rewrite;

 $qstr = $_SERVER['PATH_INFO'];

 $page_querystring = "paged";

 ...

}</pre>
<p><strong>Revision History</strong></p>
<ul>
<li>version 2.1 -2007-8-29
<ul>
<li>Fixed a bug that may cause rewriting failed if there are many blogs under a single site. </li>
</ul>
</li>
<li>version 2.0 -2007-8-17
<ul>
<li>no configuration file needed.This version automatically generate URL rewriting rules for each WordPress sites on the same server. </li>
<li>Support multiple WordPress sites on the same server.you can install this filter at the global level to support multiple WordPress sites on your server. </li>
</ul>
</li>
<li>version 1.1 - 2006-11-1
<ul>
<li>optimize algorithm. </li>
<li>exclude directories : wp-admin,wp-content from the url rewriting rules. </li>
</ul>
</li>
<li>version 1.0 - 2006-9-2
<ul>
<li>Initial Version </li>
</ul>
</li>
</ul>
<p>this ISAPI filter has been build with /MT switch(multithread, static CRT) ,if you failed to load this plugin,<a href="http://www.microsoft.com/downloads/details.aspx?displaylang=en&amp;FamilyID=32BC1BEE-A3F9-4C13-9C99-220B62A191EE">download vcredist_x86.exe from microsoft</a>,run it on the target computer,this installs all Visual C++ libraries as shared assemblies.</p>
<p><font size="-1">Please <font color="#ff0000">feel free to report</font> any bugs.</font></p>
<p><font size="-1">This project is licensed under </font><a href="http://www.gnu.org/licenses/gpl.html" rel="nofollow">GNU General Public License 2.0. </a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.deanlee.cn/wordpress/url-rewriting-for-wordpress-under-iis/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>

