Revcms IIS Housekeeping Issue
500 server error, kinda stumped on this one.
I have tried without htaccess and with, it has a web.config too. also getting this error when trying to open URL rewrite
http://i.imgur.com/LrrP9w7.png
My web.config in /ase
Code:
<rule name="rule 1D">
<match url="^(|/)$" />
<action type="Rewrite" url="/index.php?url={R:1}" />
</rule>
<rule name="rule 2D">
<match url="^([a-zA-Z0-9_-]+)(|/)$" />
<action type="Rewrite" url="/index.php?url={R:1}" />
</rule>
<rule name="rule 3D">
<match url="^(.*)\.htm$" ignoreCase="true" />
<action type="Rewrite" url="/{R:1}.php" />
</rule>
Re: Revcms IIS Housekeeping Issue
U forgot to use <rewrite> and <rules>
Code:
<rewrite>
<rules>
<rule name="rule 1D">
<match url="^(|/)$" />
<action type="Rewrite" url="/index.php?url={R:1}" />
</rule>
<rule name="rule 2D">
<match url="^([a-zA-Z0-9_-]+)(|/)$" />
<action type="Rewrite" url="/index.php?url={R:1}" />
</rule>
<rule name="rule 3D">
<match url="^(.*).htm$" ignoreCase="true" />
<action type="Rewrite" url="/{R:1}.php" />
</rule>
</rules>
</rewrite>
Re: Revcms IIS Housekeeping Issue
Replace it with
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="index.php?page={R:1}" appendQueryString="false" />
</rule>
<rule name="Imported Rule 5">
<match url="^([a-zA-Z0-9_-]+)(|/)$" ignoreCase="false" />
<action type="Rewrite" url="index.php?url={R:1}" appendQueryString="false" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
Hope this helps :)
Re: Revcms IIS Housekeeping Issue
Quote:
Originally Posted by
MrSpooks
Replace it with
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="index.php?page={R:1}" appendQueryString="false" />
</rule>
<rule name="Imported Rule 5">
<match url="^([a-zA-Z0-9_-]+)(|/)$" ignoreCase="false" />
<action type="Rewrite" url="index.php?url={R:1}" appendQueryString="false" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
Hope this helps :)
thx for ur reply, unfortunately didnt work so i just removed the web.config and used htaccess now the error is gone, all i can see is the login page and the login button doesn't work, i shit you not it just worked once then, i made an article then it logged me out then i tried to login again and it didnt work??????