views:

211

answers:

1

Hello all,

I have a web application runs @ Windows 2008 R2, ASP.NET v4.0.

I installed the Url Rewrite Module, and started to use it as shown in the official examples.

My problem starts when the <rewrite> tag is added to the web.config under <system.webServer> - actually when I try to browse to any page under this current application, I get 500 - Internal server error.

This is the <rewrite> block I've been adding:

<system.webServer>
    <rewrite>
        <rules>
            <rule name="test1">
                <match url="^default/([0-9]+)/([_0-9a-z-]+)" />
                <action type="Rewrite" url="default.aspx?id={R:1}&amp;title={R:2}" />
            </rule>
        </rules>
    </rewrite>
</system.webServer>

Thanks in advance!

Gal.

A: 

Hi,

Just had same error and found a fix. You need to install the module for IIS for URL rewrite. you can dowload it here: http://www.iis.net/download/URLRewrite

Cheers,

Ricardo M