# VERSÃO LOCALHOST
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php

# VERSÃO UBUNTU VPS

#Options +FollowSymLinks -MultiViews

#RewriteEngine On
#RewriteBase /


#RewriteCond %{HTTP_HOST} !=localhost
#RewriteCond %{HTTP_HOST} !=127.0.0.1
#RewriteCond %{REMOTE_ADDR} !=127.0.0.1
#RewriteCond %{REMOTE_ADDR} !=::1


#RewriteCond %{THE_REQUEST} ^[A-Z]{3,}\s([^.]+)\.php [NC]
#RewriteRule ^ %1 [R=302,L]


#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{REQUEST_FILENAME}.php -f
#RewriteRule ^(.*?)/?$ $1.php [L]