<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /troya9/

    # Se for arquivo ou pasta real, não reescreve
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]

    # Home (troya9/ ou troya9/index)
    RewriteRule ^$ index.php [L]
    RewriteRule ^index/?$ index.php [L,QSA]

    # URLs amigáveis -> arquivos PHP
    RewriteRule ^imoveis/?$  imoveis.php  [L,QSA]
    RewriteRule ^sobre/?$    sobre.php    [L,QSA]
    RewriteRule ^contato/?$  contato.php  [L,QSA]
</IfModule>

DirectoryIndex index.php