Hello,
I want to use Silverstripe on a shared hosting. Helicone ISAPI Rewrite is installed on the server. When I try to install Silverstripe I get the following error;
Friendly URLs are not working. This is most likely because mod_rewrite isn't configuredcorrectly on your site. Please check the following things in your Apache configuration; you may need to get your web host or server administrator to do this for you:
mod_rewrite is enabled
AllowOverride All is set for your directory
Although I get this error, I can go to the home page of the website. But only the "Home page" since URL Rewrite is not functioning I guess because every menu button is opening the home page only and there is no CMS login page etc.
I have contacted to the hosting company. They told me that Helicon is fully compatible with apache mod_rewrite. Then I have googled a bit and found the following article on Helicon's web page;
http://www.helicontech.com/articles/ss.htm
Actually, SE-friendly feature is enabled by default. But SilverStripe does not originally support IIS and ISAPI_Rewrite. On the first page of the installation you may see this text:
Picture 1. Information messages in the installation.
If you open your web-site after SilverStripe installation, you will see the note that mod_rewrite is not enabled. Actually, SilverStripe tries to find mod_rewrite (only), and if the search is sucessfull, SilverStripe automatically creates rules in .htaccess file, and you get CMS working with SE-friendly URLs!
Thus under IIS we need to do some hacking. Let's just disable the check for mod_rewrite.
Please go to SilverStripe installation folder and open rewritetest.php file. Please find this code:
$testrewriting = file_get_contents($location);
if($testrewriting == 'OK') {
return true;
}And comment is out as follows:
//$testrewriting = file_get_contents($location);
//if($testrewriting == 'OK') {
return true;
//}
Of course this article is about Silverstripe 2.2.2 but I think this doesn't matter. This article didn't help me anyway.
So far, I cannot install silverstripe correctly on ISS 6.0 with Helicon ISAPI Rewrite on a Windows 2003 Server.
Hosting company is open for any advice if there is a way to correct this problem on the server if it is a IIS or Helicon related problem.
Any advice, help is very much appreciated.