From 8468429f6fce081417f98ff25e51fc7835f75048 Mon Sep 17 00:00:00 2001 From: Nathan Kinkade Date: Mon, 31 Dec 2012 18:01:49 +0000 Subject: Cleaned up .htaccess and moved two rules to the vhost config. --- .htaccess | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.htaccess b/.htaccess index e8c4024..e0b2d91 100644 --- a/.htaccess +++ b/.htaccess @@ -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] -- cgit v1.2.3