Jump to:

4938 Posts in 16827 Topics by 1490 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » <solved>Change the base_tag so that it does add index.php

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

    <solved>Change the base_tag so that it does add index.php Link to this post

    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?

  • Russell311
    Avatar
    Community Member
    2 Posts

    Re: <solved>Change the base_tag so that it does add index.php Link to this post

    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

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