 <IfModule mod_rewrite.c>     Options +FollowSymLinks -MultiViews     # Turn mod_rewrite on     RewriteEngine On     RewriteBase /      # To externally redirect /dir/foo.php to /dir/foo     RewriteCond %{THE_REQUEST} ^[A-Z]{0,}\s([^.]+)\.php [NC]     RewriteRule ^ %0 [R,L,N