web.config to .htaccess

Raynex

New Member
Sep 22, 2020
8
2
How i can convert it?
Code:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <rewrite>
            <rules>
                <rule name="Imported Rule 1">
                    <match url="^(|/)$" ignoreCase="false" />
                    <action type="Rewrite" url="index.php?url={R:1}" appendQueryString="false" />
                </rule>
                <rule name="Imported Rule 2">
                    <match url="^([a-zA-Z0-9_-]+)(|/)$" ignoreCase="false" />
                    <action type="Rewrite" url="index.php?url={R:1}" appendQueryString="false" />
                </rule>
                <rule name="Imported Rule 3">
                    <match url="^(.*)\.htm$" />
                    <action type="Rewrite" url="{R:1}.php" />
                </rule>
                <rule name="Imported Rule 4">
                    <match url="^(|/)$" ignoreCase="false" />
                    <action type="Rewrite" url="dash.php?page={R:1}" appendQueryString="false" />
                </rule>
                <rule name="Imported Rule 5">
                    <match url="^([a-zA-Z0-9_-]+)(|/)$" ignoreCase="false" />
                    <action type="Rewrite" url="dash.php?url={R:1}" appendQueryString="false" />
                </rule>
                <rule name="Imported Rule 7">
                    <match url="^home/([^/]+)" ignoreCase="false" />
                    <action type="Rewrite" url="index.php?url=home&amp;user={R:1}" appendQueryString="false" />
                </rule>
                <rule name="Rule 1">
                    <match url="^habbo-imaging/badge/([^/]+)" ignoreCase="false" />
                    <action type="Rewrite" url="/habbo-imaging/badge.php?badge={R:1}" appendQueryString="false" />
                </rule>
                <rule name="Rule 2">
                    <match url="^habbo-imaging/avatar/([^/]+)" ignoreCase="false" />
                    <action type="Rewrite" url="habbo-imaging/avatarimage.php?figure={R:1}" appendQueryString="false" />
                </rule>
                <rule name="Rule 3">
                    <match url="^habbo-imaging/avatarimage/([^/]+)" ignoreCase="false" />
                    <action type="Rewrite" url="habbo-imaging/avatarimage.php?username={R:1}" appendQueryString="false" />
                </rule>
                <rule name="Rule 4">
                    <match url="^habbo-imaging/head/([^/]+)" ignoreCase="false" />
                    <action type="Rewrite" url="habbo-imaging/head.php?figure={R:1}" appendQueryString="false" />
                </rule>
                <rule name="Forum Threads">
                    <match url="^thread/([0-9]+)" />
                    <action type="Rewrite" url="index.php?url=thread&amp;threadid={R:1}" />
                </rule>
                <rule name="Forum Posts">
                    <match url="^post/([0-9]+)" />
                    <action type="Rewrite" url="index.php?url=post&amp;postid={R:1}" />
                </rule>
                <rule name="Forum New Thread">
                    <match url="^create/([0-9]+)" />
                    <action type="Rewrite" url="index.php?url=newthread&amp;thread={R:1}" />
                </rule>
            </rules>
        </rewrite>
        
    </system.webServer>
</configuration>
 

smg

New Member
Nov 25, 2018
19
11
RewriteRule ^(|/)$ index.php?url=$1
RewriteRule ^([a-zA-Z0-9_-]+)(|/)$ index.php?url=$1
RewriteRule ^(.*)\.htm$ $1.php
RewriteRule ^(|/)$ dash.php?page=$1
RewriteRule ^([a-zA-Z0-9_-]+)(|/)$ dash.php?url=$1
RewriteRule ^home/([^/]+) index.php?url=home&user=$1
RewriteRule ^habbo-imaging/badge/([^/]+) /habbo-imaging/badge.php?badge=$1
RewriteRule ^habbo-imaging/avatar/([^/]+) habbo-imaging/avatarimage.php?figure=$1
RewriteRule ^habbo-imaging/avatarimage/([^/]+) habbo-imaging/avatarimage.php?username=$1
RewriteRule ^habbo-imaging/head/([^/]+) habbo-imaging/head.php?figure=$1
RewriteRule ^thread/([0-9]+) index.php?url=thread&threadid=$1
RewriteRule ^post/([0-9]+) index.php?url=post&postid=$1
RewriteRule ^create/([0-9]+) index.php?url=newthread&thread=$1
 

Users who are viewing this thread

Top