Jump to:

17452 Posts in 4473 Topics by 1971 members


SilverStripe Forums » Archive » Admin interface doesn't work on IIS

Our old forums are still available as a read-only archive.

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

Page: 1
Go to End
Author Topic: 1360 Views
  • vince
    Community Member
    4 Posts

    Admin interface doesn't work on IIS Link to this post

    I installed Silverstripe on an IIS (not because I want to, but it's a requirement..).

    I followed the manuals and the forum thread found on http://doc.silverstripe.com/doku.php?id=iis-installation and after some modifications found in the forum thread it works, except the admin interface returns different errors, either "page not found (404)" or "unable to process request", depending on whether i log in first using /Security/login.

    The regular website is visible, with all links and images etc. working.

    This is my current .htaccess:
    <open bracket> = [, <close bracket>= ]

    RewriteEngine On
    RewriteCond %{REQUEST_URI} !(.gif)|(.jpg)|(.JPG)|(.png)|(.css)|(.js)|(.php)$
    RewriteCond %{REQUEST_URI} ^(.*)$
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ /sapphire/main.php?url=$1 <open bracket>I,L,QSA<close bracket>

    And ideas? Anyone experienced problems with the admin backend on IIS, too?

    I'd really like to get this working..

  • vince
    Community Member
    4 Posts

    Re: Admin interface doesn't work on IIS Link to this post

    I just realized, that the rewriting as such seems to be correct, but that server side redirects are not being rewritten by isapi/rewrite.

    E.g. the server correctly rewrites domain.com/Security/login to domain.com/sapphire/main.php?url=/Security/login.

    If I open domain.com/admin, Silverstripe redirects to domain.com/Security/login. But after that, the server doesn't rewrite the URL and returns a 404 error, as there is no directory /Security on the server.

    The same thing happens with /home, which redirects to / and returns a 'directory listing denied' as it's not being rewritten. Again, opening domain.com directly works.

    Is there any way to configure (change) this behaviour in IIS? Is this a misconfiguration of IIS? Anyone seen this before?

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.