Options -Indexes -MultiViews
DirectoryIndex index.php
<IfModule mod_rewrite.c>
RewriteEngine On
# Força URL canônica em HTTPS, sem www (evita conteúdo duplicado).
RewriteCond %{HTTP_HOST} ^(www\.)?umati\.com\.br$ [NC]
RewriteCond %{HTTPS} !=on
RewriteCond %{HTTP:X-Forwarded-Proto} !https [NC]
RewriteRule ^ https://umati.com.br%{REQUEST_URI} [R=301,L,NE]
RewriteCond %{HTTP_HOST} ^www\.umati\.com\.br$ [NC]
RewriteRule ^ https://umati.com.br%{REQUEST_URI} [R=301,L,NE]
# Endereços antigos do Joomla
RewriteRule ^index\.php/uma-t-i/?$ /uma-ti [R=301,L,NC]
RewriteRule ^uma-t-i/?$ /uma-ti [R=301,L,NC]
RewriteRule ^(sobre|empresa)/?$ /uma-ti [R=301,L,NC]
RewriteRule ^uma-ti/?$ index.php?page=uma-ti [L,QSA]
RewriteRule ^sitemap\.xml$ sitemap.php [L]
# Outras URLs não existentes vão ao front controller (404 apropriado).
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ index.php [L,QSA]
</IfModule>
<FilesMatch "^(config\.php|functions\.php|router\.php|README.*|.*\.md)$">
 Require all denied
</FilesMatch>
<IfModule mod_headers.c>
 Header always set X-Content-Type-Options "nosniff"
 Header always set Referrer-Policy "strict-origin-when-cross-origin"
</IfModule>
<IfModule mod_expires.c>
 ExpiresActive On
 ExpiresByType text/css "access plus 1 month"
 ExpiresByType application/javascript "access plus 1 month"
 ExpiresByType image/svg+xml "access plus 1 month"
 ExpiresByType image/png "access plus 1 month"
 ExpiresByType image/jpeg "access plus 1 month"
</IfModule>
