Help a friend

Status
Not open for further replies.

Dan3212

Member
Mar 30, 2016
86
10
My friend is setting a habbo retro up and is not sure what's going wrong.

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

All he is getting is this error message.

I'll paste web.config and .htaccess

Code:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <rewrite>
            <rules>
            <rule name="Imported Rule 424310" stopProcessing="true">
                    <match url="^community/staff$" ignoreCase="false" />
                    <action type="Rewrite" url="index.php?url=staff" appendQueryString="true" />
                </rule>
                <rule name="Imported Rule 42431d0" stopProcessing="true">
                    <match url="^account/referrals$" ignoreCase="false" />
                    <action type="Rewrite" url="index.php?url=referrals" appendQueryString="true" />
                </rule>
                <rule name="Imported Rule 42410" stopProcessing="true">
                    <match url="^shop/badge$" ignoreCase="false" />
                    <action type="Rewrite" url="index.php?url=badgeshop" appendQueryString="true" />
                </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="Imported Rule 1213123">
                    <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 83" stopProcessing="true">
                    <match url="^pages/rules$" ignoreCase="false" />
                    <action type="Rewrite" url="index.php?url=rules" appendQueryString="true" />
                </rule>
                <rule name="Imported Rule 10" stopProcessing="true">
                    <match url="^me/settings$" ignoreCase="false" />
                    <action type="Rewrite" url="index.php?url=settings" appendQueryString="true" />
                </rule>
                <rule name="Imported Rule 11" stopProcessing="true">
                    <match url="^pages/terms$" ignoreCase="false" />
                    <action type="Rewrite" url="index.php?url=terms" appendQueryString="true" />
                </rule>
                <rule name="Imported Rule 12" stopProcessing="true">
                    <match url="^pages/privacy$" ignoreCase="false" />
                    <action type="Rewrite" url="index.php?url=privacy" appendQueryString="true" />
                </rule>
                <rule name="Imported Rule 14" stopProcessing="true">
                    <match url="^account/banned$" ignoreCase="false" />
                    <action type="Rewrite" url="index.php?url=banned" appendQueryString="true" />
                </rule>
                <rule name="Imported Rule 15" stopProcessing="true">
                    <match url="^account/logout$" ignoreCase="false" />
                    <action type="Rewrite" url="index.php?url=logout" appendQueryString="true" />
                </rule>
                <rule name="novote">
                    <match url="^index/novote(|/)$" ignoreCase="false" />
                    <action type="Rewrite" url="index.php?url=index&amp;novote" />
                </rule>
                            <rule name="Imported Rule 1-1">
                    <match url="^manage/([^/]+)" ignoreCase="false" />
                    <action type="Rewrite" url="/manage/index.php?url={R:1}" appendQueryString="false" />
                </rule>
                                            <rule name="Importetwad Rule 1-1">
                    <match url="^register/([^/]+)" ignoreCase="false" />
                    <action type="Rewrite" url="index.php?url=register&amp;referrer={R:1}" appendQueryString="false" />
                </rule>
                <rule name="Imported Rule 2-1">
                    <match url="^manage/([^/]+)" ignoreCase="false" />
                    <action type="Rewrite" url="/manage/index.php?url={R:1}" appendQueryString="false" />
                </rule>
                <rule name="Imported Rule 1e-2" stopProcessing="true">
                    <match url="^error/notfound$" ignoreCase="false" />
                    <action type="Rewrite" url="index.php?url=404" appendQueryString="true" />
                </rule>
                <rule name="Imported Rule 7">
                    <match url="^home/([a-zA-Z0-9_-]+)(|/)$" ignoreCase="false" />
                    <action type="Rewrite" url="index.php?url=home&amp;user={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>
        <httpErrors>
            <remove statusCode="404" subStatusCode="-1" />
            <error statusCode="404" prefixLanguageFilePath="" path="{url}/404" responseMode="Redirect" />
        </httpErrors>
    </system.webServer>
</configuration>
Code:
RewriteEngine On

RewriteRule ^([a-zA-Z0-9_-]+)(|/)$ index.php?url=$1
RewriteRule ^(.*)\.htm$ $1.php [NC]

RewriteRule ^(|/)$ dash.php?page=$1
RewriteRule ^([a-zA-Z0-9_-]+)(|/)$ dash.php?url=$1

can someone provide a fix or whatnot
 

Kak

Posting Freak
Apr 21, 2017
951
165
in your start menu bar search and open iis > sites > default website > look for the url rewrite tool > inbound rules/import rules on the far right > look for .htaccess in your wwwroot then import it > apply
 
Status
Not open for further replies.

Users who are viewing this thread

Top