Skip to content

Commit

Permalink
removed extra .htaccess rules and added documentation in .htaccess
Browse files Browse the repository at this point in the history
  • Loading branch information
Elijah Grey committed Jul 21, 2009
1 parent 49e0b3a commit bd7d695
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .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 RewriteEngine On


RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.php -f RewriteCond %{REQUEST_FILENAME}.html -f
RewriteRule (.*) $1.html [L,QSA] 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.