Revcms IIS Housekeeping Issue

Results 1 to 4 of 4
  1. #1
    Sorcerer Supreme tomsandz is offline
    Member +Rank
    Nov 2012 Join Date
    EnglandLocation
    272Posts

    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


    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>


  2. #2
    Newbie droogh is offline
    MemberRank
    Jun 2008 Join Date
    1Posts

    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>

  3. #3
    Not so spooky... MrSpooks is offline
    Grand MasterRank
    May 2010 Join Date
    Under a rockLocation
    1,068Posts

    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 :)

  4. #4
    Sorcerer Supreme tomsandz is offline
    Member +Rank
    Nov 2012 Join Date
    EnglandLocation
    272Posts

    Re: Revcms IIS Housekeeping Issue

    Quote Originally Posted by MrSpooks View Post
    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??????
    Last edited by tomsandz; 25-09-15 at 03:34 PM.



Advertisement