Jump to:

4952 Posts in 14422 Topics by 1491 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » Migration of Silverstripe from Apache to IIS

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: 1638 Views
  • LauncesonCollege
    Avatar
    Community Member
    2 Posts

    Migration of Silverstripe from Apache to IIS Link to this post

    Hello,

    I have had to migrate silverstripe from apache to IIS, everything has been copied fine including the database. I had issues with the mod_rewrite stuff in the htaccess file but managed to get around that issue successfully (i think)

    However now when you load the root folder it directs to a 404 error page. ie when i go to http://website.com/ it 404 errors but if I go to http://website.com/index.php it is fine. I have set IIS to use index.php as the default file however it still does not work.

    I then decided to make my own index.php and see if that was loading... which it was, so this leads me to believe that the index.php file is loading however something within silverstripe is redirecting to a 404.

    Does anyone know how to resolve this issue?

    Any help on this matter is much appreciated.

    MTIA

  • Hamish
    Avatar
    Community Member
    712 Posts

    Re: Migration of Silverstripe from Apache to IIS Link to this post

    SilverStripe's index.php exists purely to allow it to work without mod_rewrite. If your rewriting rules are working you should be able to delete it.

    I don't know how IIS handles rewrites, but that's where your error is.

  • Sean
    Avatar
    Forum Moderator
    921 Posts

    Re: Migration of Silverstripe from Apache to IIS Link to this post

    Which version of IIS are you migrating to?

    IIS 7 and 7.5 use this extension for rewriting: http://www.iis.net/expand/URLRewrite. Create a new web.config file in your project and add the following from this page: http://open.silverstripe.org/browser/phpinstaller/branches/2.4/web.config.

    If using IIS 5 or 6 it may be a little more difficult, as there are no official rewriting extensions for these versions. However, there are third-party extensions that may work.

    Cheers,
    Sean

  • LauncesonCollege
    Avatar
    Community Member
    2 Posts

    Re: Migration of Silverstripe from Apache to IIS Link to this post

    Thank you for the replies. However i thought i would update you guys and let you both know that we are migrating back to a LAMP server, so the problem will resolve itself.

    Many thanks

    1638 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.