Skip to content

Instantly share code, notes, and snippets.

@gubleo
Created February 11, 2020 13:20
Show Gist options
  • Save gubleo/c348ee47b17ebdcf1a94a390a258f548 to your computer and use it in GitHub Desktop.
Save gubleo/c348ee47b17ebdcf1a94a390a258f548 to your computer and use it in GitHub Desktop.
esconder extensoes de arquivos html e outros
<IfModule mod_rewrite.c>
Options +FollowSymLinks -MultiViews
RewriteEngine On
RewriteBase /
RewriteCond %{THE_REQUEST} ^[A-Z]{3,}\s([^.]+)\.html [NC]
RewriteRule ^ %1 [R,L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.html -f
RewriteRule ^(.*?)/?$ $1.html [L]
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment