RewriteEngine On
#RewriteRule .* - [e=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteCond %{HTTP:Authorization} ^(.*)
RewriteRule .* - [e=HTTP_AUTHORIZATION:%1]

CGIPassAuth On

Options -Indexes
Options -MultiViews

RewriteRule ^listar?$ api/imovel_lista_todos.php [NC,L] 
RewriteRule ^importa?$ api/imovel_lista_todos.php [NC,L] 
RewriteRule ^buscaItem/([0-9]+)?$ api/imovel.php?imovelID=$1 [NC,L] 
RewriteRule ^buscaItem/imagens/([0-9]+)?$ api/imovel_imagens.php?imovelID=$1 [NC,L] 
RewriteRule ^cadastro?$ api/imovel_cadastro.php [NC,L] 
RewriteRule ^atualiza/([0-9]+)?$ api/imovel_edita.php?imovelID=$1 [NC,L] 


RewriteRule ^corretores/cadastro?$ api/corretor_cadastro.php [NC,L] 
RewriteRule ^corretores/edita?$ api/corretor_edita.php [NC,L] 
RewriteRule ^corretores?$ api/corretor_lista_todos.php [NC,L] 
RewriteRule ^buscaCorretor/([0-9]+)?$ api/corretor.php?corretorID=$1 [NC,L] 