[HELP] Rewrite url in web.config

Teuns

New Member
Jan 19, 2013
14
0
Hello,
How to rewrite this url:
^game/habbopages/chat/commands(|/)$ commands.php
Thanks for the answer.
Bye
 

Marlboro20

Member
Dec 17, 2013
37
6
Its really simple to convert the codes. Anyways here you go i also blocked url rewrite from rewriting the ase/ folder for you :p
Code:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <rewrite>
            <rules>
                <rule name="block" stopProcessing="true">
                    <match url="^ase/(.*)$" />
                    <action type="None" />
                </rule>
                <rule name="Outbound Rules">
                    <match url="^game/habbopages/chat/commands(|/)$" />
                    <action type="Rewrite" url="commands.php" />
                </rule>
            </rules>
        </rewrite>
    </system.webServer>
</configuration>
 

Users who are viewing this thread

Top