<files ~ "^.*\.([Hh][Tt][Aa])">
	order allow,deny
	deny from all
	satisfy all
</files>
RewriteEngine on
 
RewriteRule .* - [e=HTTP_AUTHORIZATION:%{HTTP:Authorization}]


Options -Indexes
Options -MultiViews

#Paginas de erro
ErrorDocument 404 /404.php 
 

#PÁGINAS DE NAVEGAÇÃO
RewriteRule ^login/?$ login.php [NC,L] 
RewriteRule ^cadastro/?$ cadastro.php [NC,L] 
RewriteRule ^inicio/?$ index.php [NC,L] 
RewriteRule ^dashboard/?$ index.php [NC,L] 

RewriteRule ^imoveis/?$ imoveis.php [NC,L] 
RewriteRule ^imoveis/importar/?$ imoveis_importar.php [NC,L] 
RewriteRule ^imoveis/cadastro/?$ imoveis_cadastro.php [NC,L] 
RewriteRule ^imoveis/edita/([a-z0-9_\.]+)?$ imoveis_edita.php?imovel=$1 [NC,L]
RewriteRule ^imoveis/detalhes/([a-z0-9_\.]+)?$ imoveis_detalhes.php?imovel=$1 [NC,L]

RewriteRule ^corretores/?$ corretores.php [NC,L] 
RewriteRule ^corretores/importar/?$ corretores_importar.php [NC,L] 
RewriteRule ^corretores/cadastro/?$ corretores_cadastro.php [NC,L] 
RewriteRule ^corretores/edita/([a-z0-9_\.]+)?$ corretores_edita.php?corretor=$1 [NC,L]

RewriteRule ^leads/?$ leads.php [NC,L]
RewriteRule ^leads/detalhes/([a-z0-9_\.]+)?$ leads_detalhes.php?lead=$1 [NC,L]


RewriteRule ^site/design/?$ site_design.php [NC,L] 
RewriteRule ^site/paginicial/?$ site_pagina_inicial.php [NC,L] 
RewriteRule ^site/dominio/?$ site_dominio.php [NC,L] 


 
RewriteRule ^deslogar/?$ u_deslogar.php?tipo=1 [NC,L] 

RewriteRule ^renova-senha/(.*)/([a-z0-9_\.]+)?$ u_recupera_senha.php?email=$1&token=$2 [NC,L]
 
  





#AJAX
RewriteRule ^app/register/?$ app/php/user_register.php [NC,L]
RewriteRule ^app/login/?$ app/php/user_login.php [NC,L]
RewriteRule ^app/recupera-senha/?$ app/php/user_recover.php [NC,L]
RewriteRule ^app/recupera-senha/confirma/?$ app/php/user_recover_confirma.php [NC,L]

RewriteRule ^app/imoveis/importar/?$ app/php/imoveis_importar.php [NC,L]
RewriteRule ^app/imovel/cadastro/?$ app/php/imoveis_cadastro.php [NC,L]
RewriteRule ^app/imovel/edita/?$ app/php/imoveis_edita.php [NC,L]
RewriteRule ^app/imovel/favorito/?$ app/php/imoveis_acoes.php [NC,L]
RewriteRule ^app/imovel/mensagens/visualiza/?$ app/php/mensagens.php [NC,L]


RewriteRule ^app/corretor/cadastro/?$ app/php/corretor_cadastro.php [NC,L]
RewriteRule ^app/corretor/edita/?$ app/php/corretor_edita.php [NC,L]
RewriteRule ^app/corretor/importar/?$ app/php/corretor_importar.php [NC,L]

RewriteRule ^app/tarefa/anuncio/novo/?$ app/php/user_tarefa_cadastra.php [NC,L]
RewriteRule ^app/saldo/saque/?$ app/php/user_saldo_saque.php [NC,L] 