* Fixed REG_BADRPT error in isValidEmail() that prevented registration
[scuttle] / .htaccess
index c129f6940b7a1a05a10d3a4673f4454dd675f6bf..89f6dfdd03ee09661875aca782801090bb38dfd1 100644 (file)
--- a/.htaccess
+++ b/.htaccess
@@ -1,7 +1,13 @@
+# Rewrite clean URLs onto real files
+<IfModule mod_rewrite.c>
 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]
+</IfModule>

Benjamin Mako Hill || Want to submit a patch?