Ir para conteúdo

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

myNameX

URL Amigável, PHP e IIS

Recommended Posts

Olá Pessoal,

 

Eu estou com um problema com URL amigável, quando eu acesso meu site http://localhost/painel/login

Aparece:

500 - Internal server error. There is a problem with the resource you are looking for, and it cannot be displayed.

 

Ai eu tentei utilizar esse código

<configuration>
    <system.webServer>
        <rewrite>
            <rules>
                <rule name="RewriteUserFriendlyURL1" stopProcessing="true">
                    <match url="^login$" />
                    <conditions>
                        <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
                        <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
                    </conditions>
                    <action type="Rewrite" url="pages/login.php" />
                </rule>
            </rules>
        </rewrite>
    </system.webServer>
</configuration>

Mas não estou conseguindo configurar para utilizar a página login

Compartilhar este post


Link para o post
Compartilhar em outros sites

×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.