RewriteEngine on
Options +FollowSymLinks

RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}/%{REQUEST_URI} [L,R=301]

RewriteCond %{HTTP_HOST} ^www\.(.*)
RewriteRule (.*) https://%1/$1 [R=301,L]

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

RewriteCond %{REQUEST_FILENAME} !-f

RewriteRule ^(.*)/(.*)/(.*)/(.*)$ thumb?w=$1&h=$2&t=$3&img=$4



RewriteRule ^acomodacoes/?$ index?path=acomodacoes
RewriteRule ^agenda/?$ index?path=agenda
RewriteRule ^contato/?$ index?path=contato
RewriteRule ^duvidas-frequentes/?$ index?path=duvidas
RewriteRule ^nossa-estrutura/?$ index?path=estrutura
RewriteRule ^eventos/?$ index?path=eventos
RewriteRule ^localizacao/?$ index?path=localizacao
RewriteRule ^guia-ceara/?$ index?path=turismo
RewriteRule ^hotel/?$ index?path=hotel