Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Installing SilverStripe /

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

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

<solved>Change the base_tag so that it does add index.php


Reply


2 Posts   2870 Views

Avatar
Russell311

Community Member, 2 Posts

26 May 2009 at 9:49pm

Edited: 28/05/2009 12:52am

I have installed SS on an IIS server that does not have the URL rewrite enabled.
<br >
<br >The site seems to install and displays but the 'base_tag' contains http://www.mysite.com/index.php which stops all of the links to the CSS working.
<br >
<br >When I go into 'admin' all I see is a blank screen with Loading... I think the index.php in the base_tag is causing the links to the scripts and CSS to break.
<br >
<br >Is there a way to change the base_tag so that it does add index.php to links?

Avatar
Russell311

Community Member, 2 Posts

28 May 2009 at 1:03am

After following different guides I got the hosting company to put ISAPI_Rewrite on my site. At first this didn't seem to help but I have finally got SS 2.3.1 working on IIS6.

This is what I did.

I uploaded a new version of SS 2.3.1.
Then went to www.mysite.com/install.php

After entering the required database information and installer stops at the point where it checks for mod_rewrite

Next I opened .htaccess and replaced the code with the code for ISAPI_Rewrite

### SILVERSTRIPE START ###
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} !(\.gif)(\.jpg)(\.png)(\.css)(\.js)(\.php)$
RewriteCond %{REQUEST_URI} ^(.*)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule (.*) sapphire/main.php?url=$1&%{QUERY_STRING} [L]
### SILVERSTRIPE END ###

Now when I was able login and get to the CMS.

I didn't have to make any other changes to any files.

Thanks to this guide for it's help.
http://cubiksoundz.blogspot.com/2008/12/tech-note-installing-silverstripe-cms.html