RewriteEngine on

RewriteCond %{HTTPS} !=on
RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php

RewriteRule ^home$ index.php?link=index [QSA,L,NC]
RewriteRule ^sobre-nos$ page.php?id_secao=1&id_conteudo=376&link=sobre-nos [QSA,L,NC]
RewriteRule ^nosso-case galeria.php?id_secao=2&id_conteudo=763&link=nosso-case [QSA,L,NC]
RewriteRule ^contato-modular-express$ contato.php?link=contato-modular-express [QSA,L,NC]
RewriteRule ^noticias$ blog.php?id_secao=11&link=noticias [QSA,L,NC]

# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php70” package as the default “PHP” programming language.
<IfModule mime_module>
  AddHandler application/x-httpd-ea-php70 .php .php7 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
