Jump to:

4938 Posts in 16827 Topics by 1490 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » base url, subdirectory installation, htaccess problem

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: 3702 Views
  • Stompit
    Community Member
    17 Posts

    base url, subdirectory installation, htaccess problem Link to this post

    Hi There,
    Have spent a couple of hours scanning the forums and trying out solutions with no luck. SilverStripe is installed in a sub-directory, now it is launch time, so I planned to just change the .htaccess file. This works, but the the site links still use the sub-directory in their urls.

    Site is installed in /site09/

    .htaccess in /site09/ folder is the following:
    <Files *.ss>
    Order deny,allow
    Deny from all
    Allow from

    <IfModule mod_rewrite.c>
    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]

    .htaccess file in root folder (public_html) is:
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule ^(.*)$ site09/$1

    This worked on another server, but not in this instance.

    Have also tried to force the base url in the /mysites/configuration file but this has knock on effects like not being able to log into the CMS admin.

    Any help would be greatly appreciated!


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.