diff --git a/.htaccess b/.htaccess index 01fe224..50c2a93 100644 --- a/.htaccess +++ b/.htaccess @@ -1,11 +1,6 @@ RewriteEngine On -RewriteCond %{THE_REQUEST} /index\.php/(.+)\sHTTP [NC] -RewriteCond %{THE_REQUEST} !-f -RewriteRule ^ /%1 [NE,L,R] - -RewriteCond %{REQUEST_FILENAME} !-d -RewriteCond %{REQUEST_FILENAME} !-f -RewriteRule ^(.+)$ /index.php/$1 [L] - -RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /(.*)index\.php($|\ |\?) -RewriteRule ^ /%1 [R=301,L] +RewriteCond %{THE_REQUEST} /([^.]+)\.php [NC] +RewriteRule ^ /%1 [NC,L,R] + +RewriteCond %{REQUEST_FILENAME}.php -f +RewriteRule ^ %{REQUEST_URI}.php [NC,L]