<?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>techbits.de &#187; mod_rewrite</title>
	<atom:link href="http://www.techbits.de/tag/mod_rewrite/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.techbits.de</link>
	<description>thoughts on hardware, software, development and tech news</description>
	<lastBuildDate>Fri, 02 Dec 2011 22:51:07 +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>Search engine friendly urls without mod_rewrite</title>
		<link>http://www.techbits.de/2005/12/31/search-engine-friendly-urls-without-mod_rewrite/</link>
		<comments>http://www.techbits.de/2005/12/31/search-engine-friendly-urls-without-mod_rewrite/#comments</comments>
		<pubDate>Sat, 31 Dec 2005 11:15:48 +0000</pubDate>
		<dc:creator>Florian</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[mod_rewrite]]></category>
		<category><![CDATA[opensource]]></category>
		<category><![CDATA[SEF]]></category>
		<category><![CDATA[urlrewriting]]></category>

		<guid isPermaLink="false">http://www.techbits.de/2005/12/31/search-engine-friendly-urls-without-mod_rewrite/</guid>
		<description><![CDATA[When I set up my wordpress blog yesterday I wanted to use search engine friendly URLs which wordpress usually supports by the use of Apache&#8217;s mod_rewrite. Unfortunately my hoster doesn&#8217;t support .htaccess files in the small web package I currently &#8230; <a href="http://www.techbits.de/2005/12/31/search-engine-friendly-urls-without-mod_rewrite/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>When I set up my wordpress blog yesterday I wanted to use <a target="_blank" href="http://en.wikipedia.org/wiki/Rewrite_engine">search engine friendly URLs</a> which wordpress usually supports by the use of <a target="_blank" href="http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html">Apache&#8217;s mod_rewrite</a>. Unfortunately my hoster doesn&#8217;t support .htaccess files in the small web package I currently purchased, which I found rather disappointing. Generally, there might by a couple of reasons why the default way of rewriting URLs might not work: Your hoster disabled .htaccess files (<em>AllowOverride None</em>), mod_rewrite is not loaded oder not available on the server or your site runs on IIS which naturally doesn&#8217;t Apache&#8217;s rewriting. Luckily there are two ways around this limitation that are supported by WordPress out of the box.</p>
<p>The first way that is suggested in the <a href="http://codex.wordpress.org/Using_Permalinks">Using Permalinks Section of the WordPress Codex</a> is by using URLs like <em>index.php/some/path/</em>. All you have to do is specifing the custom permalink structure in Options>Permalinks. Apparently this type of <a href="http://weblogtoolscollection.com/archives/2004/06/01/use-nice-permalinks-in-wordpress-without-the-use-of-mod_rewrite/">permalinks without the use of mod_rewrite </a>worked in WordPress at least since v1.2 but for me, the ugly <em>index.php/</em> path isn&#8217;t something I want to have permanently in my URLs. I favour the following sollution.</p>
<p>You can set your index.php of WordPress as the 404 error page for your website. This has the effect that <em>WordPress is called</em> for all your virtual URLs which do not exisit as actual files on the webserver. I&#8217;ve tested this with version 2.0 and so far it works pretty well. There may be problems with HTTP POST operations according to <a href="http://textpattern.com/weblog/135/partly-messy-clean-urls-without-modrewrite-experimental">experiments with the textpattern weblog</a>. If it turns out to work properly it should be added to the WordPress documentation since it produces the same clean URLs as mod_rewrite with the bitter aftertaste of being an ugly hack though.</p>
<p>Internally both methods rely on index.php to analyze the URL. Actually in WordPress v2.0 this has become the default way of URL rewriting any way. If you&#8217;d have a look at a .htaccess file of a WordPress v1.5 installation you&#8217;ll see about 30 rules for all the different URLs (search/, category/, author/, &#8230;). In WordPress v2.0 the .htaccess looks much cleaner: all requests are forwarded to index.php &#8211; pretty much the same way a redirection of the 404 error page would do it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.techbits.de/2005/12/31/search-engine-friendly-urls-without-mod_rewrite/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

