Options +FollowSymlinks
-AcceptPathInfo On
+<IfDefine APACHE2>
+ AcceptPathInfo On
+</IfDefine>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
-RewriteRule ^([^/]+)/?(.*) $1.php/$2 [L]
+RewriteCond %{REQUEST_FILENAME}.php -f
+RewriteRule ^([^/]+)/?(.*) $1.php/$2 [L]