How do I leave the Friendly URL in Classic ASP?

Asked

Viewed 331 times

1

I can only access the file by placing its extension, for example clients.php. I configured the web.config file this way, but I did not get results:

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <rewrite>

            <rules>
                <rule name="home" stopProcessing="true">

                    <match url="^index/?([a-zA-Z0-9_-]+)?(.php)?$" />

                    <action type="Rewrite" url="/index.php" />

                </rule>


                <rule name="clientes" stopProcessing="true">

                    <match url="^clientes/([a-zA-Z0-9_-]+)?(.php)?$" />

                    <action type="Rewrite" url="/clientes.php" />

                </rule>


                <rule name="sobre" stopProcessing="true">

                    <match url="^sobre-nos/?([a-zA-Z0-9_-]+)?(.html)?$" />

                    <action type="Rewrite" url="/empresa.asp" />

                </rule>


            </rules>

        </rewrite>

    </system.webServer>
</configuration>
  • How can I find out the IIS version? The client passed access to the hosting control panel, but found nothing about the IIS version.

  • It’s simple. Look at the headers sent by the server. Open the developer tools, go to one of the pages of your site and check the headers. You will have the server there: Server:Microsoft-IIS/8.5. In my case I use IIS 8.5. Then check if the mode rewrite is enabled on your server (Internet Information Services Manager - IIS).

  • The version is IIS 8, sorry for the delay.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.