« Previous Next »

Not Answered Thread: Problems with URL_Rewrite Mediawiki

Last post 12-02-2008 5:54 PM by michler. 5 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (6 items)

Sort Posts:

  • 11-06-2008, 4:50 AM

    Problems with URL_Rewrite Mediawiki

    Hi,

    I installed a (german) MediaWiki on my Windows 2008 IIS7 Server regarding to this tutorial:
    http://learn.iis.net/page.aspx/299/mediawiki-on-iis/

    I have problems now with the Special Pages containing "umlauts" (äöü) .

    The browser always goes in an infinite loop and is continously requesting the same page.

    Has anybody an idea?

    Here is my code in my webconfig:

    <?xml version="1.0" encoding="UTF-8"?>
    <configuration>
        <system.webServer>
            <rewrite>
                <rules>
                    <rule name="MediaWiki">
                        <match url="^(.*)$" />
                        <conditions>
                            <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
                            <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
                        </conditions>
                        <action type="Rewrite" url="index.php?title={R:1}" />
                    </rule>
                </rules>
            </rewrite>
        </system.webServer>
    </configuration>

    Thx.
    Stargate

  • 11-06-2008, 12:34 PM In reply to

    • ruslany
    • Top 25 Contributor
    • Joined on 07-01-2007, 7:38 PM
    • Redmond, WA
    • Posts 664

    Re: Problems with URL_Rewrite Mediawiki

    Have you tried installing this update? http://forums.iis.net/t/1152313.aspx

    http://ruslany.net
  • 11-06-2008, 3:43 PM In reply to

    Re: Problems with URL_Rewrite Mediawiki

    Thx that works!
  • 11-26-2008, 11:48 AM In reply to

    • michler
    • Not Ranked
    • Joined on 11-26-2008, 11:30 AM
    • Posts 2

    Re: Problems with URL_Rewrite Mediawiki

     Hi,

     

    I'm having the same problems, using the latest version of URL_Rewrite (http://www.microsoft.com/downloads/details.aspx?FamilyID=6c15b777-8d9e-4d99-b359-a98e2c0880f7&displaylang=en) , which should include the nonASCII fix according to the link.But I also tried installing the nonASCII fix (didn't help)

     

    On my wiki url rewriting works fine, except the Letzte_Änderungen and any page using an umlaut. When going to  http://paris143.server4you.de/wiki/Spezial:Letzte_Änderungen  I'm getting redirected to http://paris143.server4you.de/Wiki/Spezial:Letzte_%C3%83%3F%3F%3F%3F%3F%3F%3F%3F%3F%3F%3F%3F%3F%3F%3F%3F%3F%3F%3F%3Fnderungen and finally firefox tells me that it has been redirected to often.

     

    When disabling the urlrewrite module in IIS and removing ArticlePath in LocalSettings.php mediawiki makes the link http://paris143.server4you.de/index.php?title=Spezial:Letzte_%C3%84nderungen which works fine. When replacing %C3%84 manually by Ä still everything works.

     

    After enabling URL Rewrite for IIS (still letting arcticlePath unset) the http://paris143.server4you.de/index.php?title=Spezial:Letzte_%C3%84nderungen URL works, but the beautified http://paris143.server4you.de/Spezial:Letzte_Änderungen is redirected to http://paris143.server4you.de/index.php?title=Spezial:Letzte_%C3%83%3Fnderungen which gives me a 404 error.

     

    Is there still a bug in the URL Rewrite Module (which is great by the way), or have I configured something wrongly in my IIS or in PHP.ini?

     

    Any help would be highly appreciated,

     

    Johannes

  • 12-02-2008, 12:58 PM In reply to

    • ruslany
    • Top 25 Contributor
    • Joined on 07-01-2007, 7:38 PM
    • Redmond, WA
    • Posts 664

    Re: Problems with URL_Rewrite Mediawiki

    Try using the urlencode function:

    <action type="Rewrite" url="index.php?title={UrlEncode:{R:1}}" />

    http://ruslany.net
  • 12-02-2008, 5:54 PM In reply to

    • michler
    • Not Ranked
    • Joined on 11-26-2008, 11:30 AM
    • Posts 2

    Re: Problems with URL_Rewrite Mediawiki

     Hi,

     

    thank you very much, that did the trick.

     

    - Johannes

Page 1 of 1 (6 items)
Microsoft Communities