Browse files

removed extra .htaccess rules and added documentation in .htaccess

  • Loading branch information...
1 parent 49e0b3a commit bd7d695c386b3d579897c2d6d8fab017aa29b82e Elijah Grey committed Jul 21, 2009
Showing with 5 additions and 6 deletions.
  1. +5 −6 .htaccess
@@ -1,11 +1,10 @@
+# This .htaccess makes *.html files accessible without
+# their filename extension by using mod_rewrite. It is
+# needed to comply with the pmxdr standard.
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
-RewriteCond %{REQUEST_FILENAME}.php -f
+RewriteCond %{REQUEST_FILENAME}.html -f
RewriteRule (.*) $1.html [L,QSA]
-RewriteCond %{HTTP:User-Agent} Gecko/
-RewriteCond %{REQUEST_FILENAME} -d
-RewriteCond %{REQUEST_FILENAME} !-f
-RewriteRule (.*) /http-index-format_automator.php?dir=%{REQUEST_FILENAME} [L,QSA]

0 comments on commit bd7d695

Please sign in to comment.