4872 Posts in 5330 Topics by 1462 members
|Go to End|
4 February 2010 at 4:26am
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.
5 February 2010 at 7:53am
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.
7 February 2010 at 2:09pm Last edited: 7 February 2010 2:13pm
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.
5 May 2010 at 8:12pm
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.
|Go to Top|