<?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/"
	>
	<channel>
		<title>Comments on: Beware of Apache&#039;s Multiviews</title>
		<link>http://www.gerd-riesselmann.net/archives/2005/04/beware-of-apaches-multiviews</link>
		<description>Gerd Riesselmann: Notes From the Bog-All Around Objects: C++, .NET, PHP, Design Patterns And More</description>
		<language>en</language>
		<pubDate>Fri, 15 Apr 2005 22:44:41 +0200</pubDate>
		<generator>Drupal TotalFeeds Module</generator>
				<image>
			<title>Comments on: Beware of Apache&#039;s Multiviews</title>
			<link>http://www.gerd-riesselmann.net/archives/2005/04/beware-of-apaches-multiviews</link>
			<url>http://www.gerd-riesselmann.net/images/feedbog.png</url>
						<width>130</width>
			<height>80</height>
					</image>
			<item>
		<title>Thanks Sencer, I&#039;ll give it a try. </title>
		<link>http://www.gerd-riesselmann.net/node/60%2523comment-49</link>
		<description>Thanks Sencer, I&#039;ll give it a try. 

I previously was experimenting with the -d feature like this:

&lt;code&gt;RewriteCond $1 !-d
RewriteRule RewriteRule ^([^&amp;#92;./]+)/(.*) /$1.php/$2 [L]&lt;/code&gt;

But for some reason it didn&#039;t work. %{REQUEST_FILENAME} instead seems to be the right think to look at.</description>
		<content:encoded><![CDATA[<p>Thanks Sencer, I'll give it a try. </p>
<p>I previously was experimenting with the -d feature like this:</p>
<p><code>RewriteCond $1 !-d RewriteRule RewriteRule ^([^&#92;./]+)/(.*) /$1.php/$2 [L]</code></p>
<p>But for some reason it didn't work. %{REQUEST_FILENAME} instead seems to be the right think to look at.</p>
]]></content:encoded>
		<pubDate>Fri, 15 Apr 2005 22:44:41 +0200</pubDate>
		<dc:creator>Gerd Riesselmann</dc:creator>
		<guid isPermaLink="true">http://www.gerd-riesselmann.net/node/60%2523comment-49</guid>
							</item>
		<item>
		<title>Hi Gerd,

my own experience about 1 or 2 years earlier was mix</title>
		<link>http://www.gerd-riesselmann.net/node/60%2523comment-48</link>
		<description>Hi Gerd,

my own experience about 1 or 2 years earlier was mixed. I was also using Multiviews with Apache1.3 and we did have 406s by some Googlebots but regular 200s by other Googlebots. My conclusion was, that the bots they have running are slightly different software or different versions. All I know is our content was accessible in the Google-Index, but wether it took longer or had other sideeffects - I didn&#039;t investigate/compare back then. But it&#039;s probably best to avoid it alltogether.

Good to know, that there is a solution for Apache2. Thanks.

As for a general mod_rewrite solution - textpattern uses the following which I find pretty nice:

RewriteCond %{REQUEST_FILENAME} -f [OR]

RewriteCond %{REQUEST_FILENAME} -d

RewriteRule ^(.+) - [PT,L]

RewriteRule ^(.*) index.php

REQUEST_FILENAME is the full local filesystem path to the file or script matching the request.

-f checks wether it is a file.

-d checks wether it is a directory.

If either is true do nothing (-) and skip the remaining  rules (L). The last rule rewrites everything to index.php but can easily be replaces with your rule above:

RewriteRule ^([^&amp;#92;.]+)$ /$1.php [L]

(In case the comment form ate up the code, here is a link: http://svn.textpattern.com/current/.htaccess )</description>
		<content:encoded><![CDATA[<p>Hi Gerd,</p>
<p>my own experience about 1 or 2 years earlier was mixed. I was also using Multiviews with Apache1.3 and we did have 406s by some Googlebots but regular 200s by other Googlebots. My conclusion was, that the bots they have running are slightly different software or different versions. All I know is our content was accessible in the Google-Index, but wether it took longer or had other sideeffects - I didn't investigate/compare back then. But it's probably best to avoid it alltogether.</p>
<p>Good to know, that there is a solution for Apache2. Thanks.</p>
<p>As for a general mod_rewrite solution - textpattern uses the following which I find pretty nice:</p>
<p>RewriteCond %{REQUEST_FILENAME} -f [OR]</p>
<p>RewriteCond %{REQUEST_FILENAME} -d</p>
<p>RewriteRule ^(.+) - [PT,L]</p>
<p>RewriteRule ^(.*) index.php</p>
<p>REQUEST_FILENAME is the full local filesystem path to the file or script matching the request.</p>
<p>-f checks wether it is a file.</p>
<p>-d checks wether it is a directory.</p>
<p>If either is true do nothing (-) and skip the remaining  rules (L). The last rule rewrites everything to index.php but can easily be replaces with your rule above:</p>
<p>RewriteRule ^([^&#92;.]+)$ /$1.php [L]</p>
<p>(In case the comment form ate up the code, here is a link: <a href="http://svn.textpattern.com/current/.htaccess" title="http://svn.textpattern.com/current/.htaccess">http://svn.textpattern.com/current/.htaccess</a> )</p>
]]></content:encoded>
		<pubDate>Fri, 15 Apr 2005 22:13:57 +0200</pubDate>
		<dc:creator>Sencer</dc:creator>
		<guid isPermaLink="true">http://www.gerd-riesselmann.net/node/60%2523comment-48</guid>
							</item>
		</channel>
	</rss>
	