]> projects.mako.cc - scuttle/blobdiff - .htaccess
- Allow blacklisting and whitelisting of e-mail addresses used for new user accounts
[scuttle] / .htaccess
index c129f6940b7a1a05a10d3a4673f4454dd675f6bf..de8389958b4e8d35d3ba69ec60a90befa59dc075 100644 (file)
--- a/.htaccess
+++ b/.htaccess
@@ -1,7 +1,12 @@
-Options +FollowSymlinks
-AcceptPathInfo On
-RewriteEngine On
-RewriteBase /
-RewriteCond %{REQUEST_FILENAME} !-f
-RewriteCond %{REQUEST_FILENAME} !-d
-RewriteRule ^([^/]+)/?(.*)      $1.php/$2       [L]
+# Rewrite clean URLs onto real files
+<IfModule mod_rewrite.c>
+  <IfDefine APACHE2>
+    AcceptPathInfo On
+  </IfDefine>
+  RewriteEngine On
+  RewriteBase /
+  RewriteCond %{REQUEST_FILENAME} !-f
+  RewriteCond %{REQUEST_FILENAME} !-d
+  RewriteCond %{REQUEST_FILENAME}.php -f
+  RewriteRule ^([^/]+)/?(.*) $1.php/$2 [L]
+</IfModule>

Benjamin Mako Hill || Want to submit a patch?