diff options
| author | Nathan Kinkade <nath@nkinka.de> | 2012-12-31 18:01:49 +0000 |
|---|---|---|
| committer | Nathan Kinkade <nath@nkinka.de> | 2012-12-31 18:01:49 +0000 |
| commit | 8468429f6fce081417f98ff25e51fc7835f75048 (patch) | |
| tree | 8e299ac28ff78f0439d900a64cf1b0cf6d4ceae3 | |
| parent | 200038f69266e0d51f1837a58aeb7de2d3dea994 (diff) | |
Cleaned up .htaccess and moved two rules to the vhost config.
| -rw-r--r-- | .htaccess | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -1,11 +1,7 @@ RewriteEngine On -# Redirect any requests with .php extensions to non .php URLs -RewriteRule ^index\.php(.*) http://dev.nutridb.org/$1 [NE,L,R=301] -RewriteRule ^(.*?)\.php(.*)$ http://dev.nutridb.org/$1$2 [NE,L,R=301] - # Get rid of ugly .php extensions RewriteCond %{REQUEST_URI} !^/$ RewriteCond %{REQUEST_FILENAME} !-f -RewriteRule ^([^#?]*)(.*)$ /$1.php$2 [L,NE,PT] +RewriteRule ^([^#?]*)(.*)$ $1.php$2 [L,NE] |
