NotoriousJameson
James
- Jan 7, 2016
- 194
- 15
So, As stated before & yes I've tried a few fixes from people, I am currently using BrainCMS from @BrainCMS the latest version but for some reason when I do for example...
My web.config is:
You must be registered for see links
it does not logout but instead when I go to /logout.php "404 not found" but then after doing that and going to "
You must be registered for see links
" then it works, my logout.php code is:
PHP:
<?php
session_destroy();
$_SESSION = array();
header('Location: '.$config['hotelUrl'].'/index');
?>
Code:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Imported Rule Brain">
<match url="^([a-zA-Z0-9_-]+)(|/)$" ignoreCase="false" />
<action type="Rewrite" url="index.php?url={R:1}" appendQueryString="false" />
</rule>
<rule name="Imported Rule HK">
<match url="adminpan/([a-zA-Z0-9_-]+)(|/)$" ignoreCase="false" />
<action type="Rewrite" url="adminpan/index.php?url={R:1}" appendQueryString="false" />
</rule>
<rule name="Rule 112">
<match url="^swf/habbo-imaging/badge/([^/]+)" ignoreCase="false" />
<action type="Rewrite" url="/swf/habbo-imaging/badge.php?badge={R:1}" appendQueryString="false" />
</rule>
<rule name="Imported Rule 1" stopProcessing="true">
<match url="news/([a-zA-Z0-9_-]+)(|/)$" ignoreCase="false" />
<action type="Rewrite" url="/index.php?url=news&id={R:1}" appendQueryString="false" />
</rule>
<rule name="Imported Rule 131234" stopProcessing="true">
<match url="home/([a-zA-Z0-9_-]+)(|/)$" ignoreCase="false" />
<action type="Rewrite" url="/index.php?url=home&user={R:1}" appendQueryString="false" />
</rule>
<rule name="Imported Rule HK Users" stopProcessing="true">
<match url="adminpan/gebruiker/([a-zA-Z0-9_-]+)(|/)$" ignoreCase="false" />
<action type="Rewrite" url="/adminpan/index.php?url=gebruiker&user={R:1}" appendQueryString="false" />
</rule>
<rule name="Imported Rule HK Sollielook" stopProcessing="true">
<match url="adminpan/sollielook/([a-zA-Z0-9_-]+)(|/)$" ignoreCase="false" />
<action type="Rewrite" url="/adminpan/index.php?url=sollielook&look={R:1}" appendQueryString="false" />
</rule>
<rule name="Imported Rule HK DeleteNews" stopProcessing="true">
<match url="adminpan/news/delete/([a-zA-Z0-9_-]+)(|/)$" ignoreCase="false" />
<action type="Rewrite" url="/adminpan/index.php?url=news&delete={R:1}" appendQueryString="false" />
</rule>
<rule name="Imported Rule HK DeleteSollie" stopProcessing="true">
<match url="adminpan/sollielook/delete/([a-zA-Z0-9_-]+)(|/)$" ignoreCase="false" />
<action type="Rewrite" url="/adminpan/index.php?url=sollielook&delete={R:1}" appendQueryString="false" />
</rule>
<rule name="Imported Rule HK EditNews" stopProcessing="true">
<match url="adminpan/news/edit/([a-zA-Z0-9_-]+)(|/)$" ignoreCase="false" />
<action type="Rewrite" url="/adminpan/index.php?url=editnews&news={R:1}" appendQueryString="false" />
</rule>
<rule name="Imported Rule HK DeleteBan" stopProcessing="true">
<match url="adminpan/bans/delete/([a-zA-Z0-9_-]+)(|/)$" ignoreCase="false" />
<action type="Rewrite" url="/adminpan/index.php?url=bans&delete={R:1}" appendQueryString="false" />
</rule>
<rule name="Imported Rule HK GiveUODW" stopProcessing="true">
<match url="adminpan/giveuseroftheweek/([a-zA-Z0-9_-]+)(|/)$" ignoreCase="false" />
<action type="Rewrite" url="/adminpan/index.php?url=giveuseroftheweek&user={R:1}" appendQueryString="false" />
</rule>
<rule name="Imported Rule User Ref" stopProcessing="true">
<match url="register/([a-zA-Z0-9_-]+)(|/)$" ignoreCase="false" />
<action type="Rewrite" url="/index.php?url=register&userref={R:1}" appendQueryString="false" />
</rule>
<rule name="Imported Rule User Pas" stopProcessing="true">
<match url="newpassword/([a-zA-Z0-9_-]+)(|/)$" ignoreCase="false" />
<action type="Rewrite" url="/index.php?url=newpassword&key={R:1}" appendQueryString="false" />
</rule>
<rule name="LogoutFriendly1" stopProcessing="true">
<match url="^logout$" ignoreCase="false" />
<action type="Rewrite" url="logout.php" appendQueryString="false" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>