[REVCMS] .htacces rule to web.config

Results 1 to 2 of 2
  1. #1
    HabboFont.net Cankiee is offline
    MemberRank
    May 2013 Join Date
    North KoreaLocation
    978Posts

    sad [REVCMS] .htacces rule to web.config

    Hi

    First of all sorry for my bad english i am German :-D

    I want to add this .htaccess code to my web.config:

    Code:
    RewriteRule ^forum/f([a-zA-Z0-9_-]+)(|/)$ index.php?url=forum&view=category&id=$1
    RewriteRule ^forum/thread/([a-zA-Z0-9_-]+)(|/)$ index.php?url=forum&view=thread&id=$1
    RewriteRule ^forum/newthread/f([a-zA-Z0-9_-]+)(|/)$ index.php?url=forum&view=newthread&id=$1
    But when i do it and save it it says 500 - internal server error.

    Please help!

    This is my web.config:

    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>

    Thanks!


  2. #2
    Check http://arcturus.pw The General is offline
    DeveloperRank
    Aug 2011 Join Date
    7,608Posts

    Re: [REVCMS] .htacces rule to web.config

    Save those lines as .htaccess

    Go to IIS -> Url Rewrite -> Import Rules -> Navigate to .htaccess file -> Import.

    The new rules will be added to your current ruleset.



Advertisement