RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php
RewriteRule ^produto(|/)$ produto.php
RewriteRule ^produto/(.*)$ produto.php/$1
ErrorDocument 403 //403.php
ErrorDocument 404 //404.php
ErrorDocument 500 //500.php
The PHP version is 5.5, the provider does not access the apache version, currently running on Linux 5.2. The hosting site is locaweb.