Jump to:

4952 Posts in 14389 Topics by 1491 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » IIS7.5 w/ URL Rewrite - Installer confirms requirements but URL Rewrite fails during install

Getting SilverStripe up and running on your computer and on your web server.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 3330 Views
  • weareorganism
    Avatar
    Community Member
    14 Posts

    IIS7.5 w/ URL Rewrite - Installer confirms requirements but URL Rewrite fails during install Link to this post

    Lots of posts on this but most seem to fix .htaccess issues so I felt obligated to add another

    I'm bound to an IIS server with my client and have had the folks at Rack.io (the hosting provider) install the URL Rewrite module for IIS. The installation checks report that everything is good but during the installation progress I get the following:

    Friendly URLs are not working. This is most likely because a rewrite module isn't configured correctly on your site. You may need to get your web host or server administrator to do this for you:
    - mod_rewrite or other rewrite module is enabled on your web server
    - AllowOverride All is set for the directory where SilverStripe is installed

    Does "AllowOverride All" apply to IIS installs?

    Can anyone suggest next steps for me to troubleshoot?

    Thanks!
    Peter

  • biapar
    Avatar
    Forum Moderator
    435 Posts

    Re: IIS7.5 w/ URL Rewrite - Installer confirms requirements but URL Rewrite fails during install Link to this post

    Are there the rules into web.config?

  • weareorganism
    Avatar
    Community Member
    14 Posts

    Re: IIS7.5 w/ URL Rewrite - Installer confirms requirements but URL Rewrite fails during install Link to this post

    Hi biapar,

    Yes, the following is written to web.config during the install:

    <?xml version="1.0" encoding="utf-8"?>
    <configuration>
       <system.webServer>
          <security>
             <requestFiltering>
                <hiddenSegments applyToWebDAV="false">
                   <add segment="silverstripe-cache" />
                </hiddenSegments>
             </requestFiltering>
          </security>
          <rewrite>
             <rules>
                <rule name="SilverStripe Clean URLs" stopProcessing="true">
                   <match url="^(.*)$" />
                   <conditions>
                      <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
                   </conditions>
                   <action type="Rewrite" url="sapphire/main.php?url={R:1}" appendQueryString="true" />
                </rule>
             </rules>
          </rewrite>
       </system.webServer>
    </configuration>

    Is there a way to override the friendly URL check to see if it does indeed work but is reporting errors by mistake?

    Thanks,
    Peter

  • biapar
    Avatar
    Forum Moderator
    435 Posts

    Re: IIS7.5 w/ URL Rewrite - Installer confirms requirements but URL Rewrite fails during install Link to this post

    Is module enabled? Have you see if in IIS control panel there is url rewriting configuration?

    I run a lot of SS installation on IIS7.5 and I don't have problems.

  • weareorganism
    Avatar
    Community Member
    14 Posts

    Re: IIS7.5 w/ URL Rewrite - Installer confirms requirements but URL Rewrite fails during install Link to this post

    Hi biapar,

    The module is enabled and appears in the IIS control panel.

    Do you know if I can override the check and see if it will work?

    Peter

    Attached Files
  • biapar
    Avatar
    Forum Moderator
    435 Posts

    Re: IIS7.5 w/ URL Rewrite - Installer confirms requirements but URL Rewrite fails during install Link to this post

    Try this:

    <system.webServer>
          <security>
             <requestFiltering>
                <hiddenSegments applyToWebDAV="false">
                   <add segment="silverstripe-cache" />
                </hiddenSegments>
             </requestFiltering>
          </security>
          <rewrite>
             <rules>
                <rule name="SilverStripe Clean URLs" stopProcessing="true">
                   <match url="^(.*)$" />
                   <conditions>
                      <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
                   </conditions>
                   <action type="Rewrite" url="sapphire/main.php?url={R:1}" appendQueryString="true" />
                </rule>
             </rules>
          </rewrite>
       </system.webServer>

    3330 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.