Jump to:

23450 Posts in 18899 Topics by 2877 members

General Questions

SilverStripe Forums » General Questions » multisites possible?

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14
Go to End
Author Topic: 17741 Views
  • UncleCheese
    Avatar
    4085 Posts

    Re: multisites possible? Link to this post

    AFAIK, the uploading is not a problem anymore. You used to have to hack Image.php to pieces to get it to use Director::baseFolder()."/assets" instead of "../assets".

    But now with the ASSETS_DIR constant, that's all been cleaned up.

  • dospuntocero
    Avatar
    Community Member
    54 Posts

    Re: multisites possible? Link to this post

    amazing i will start playing with it and my new social modules and real time layout mutation systems hehe

  • m3d
    Avatar
    Community Member
    8 Posts

    Re: multisites possible? Link to this post

    I tried it with the ss_environment.php and the site is working now. But a silly question: how can I login to the administration? Should it be localhost/Baseinstall/admin or localhost/Somesite/admin? Both is not working. Get a 404 error
    Thanks for your help - again.

  • banal
    Avatar
    Community Member
    901 Posts

    Re: multisites possible? Link to this post

    It should be Somesite/admin. It's really odd that you get a 404..
    Did you modify .htaccess by any chance? How does Somesite/.htaccess look like?

  • m3d
    Avatar
    Community Member
    8 Posts

    Re: multisites possible? Link to this post

    I don't find the .htaccess file... I am administrator and I did the whole installation, but cannot see the .htaccess?!? Do I have to reinstall it?

  • dospuntocero
    Avatar
    Community Member
    54 Posts

    Re: multisites possible? Link to this post

    you can just copy the .htaccess from another project or copy the following:

    ### SILVERSTRIPE START ###
    <IfModule mod_dir.c>
    DirectorySlash Off
    </IfModule>

    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 ###

    #use this if you use svn
    RedirectMatch 404 /\\.svn(/|$)

  • banal
    Avatar
    Community Member
    901 Posts

    Re: multisites possible? Link to this post

    .htaccess Files are usually hidden by the filesystem. Open up a shell/console and navigate to the website directory. Then use the ls command with option -a (eg. ls -a) to show all files including hidden ones.

  • m3d
    Avatar
    Community Member
    8 Posts

    Re: multisites possible? Link to this post

    there is a .htaccess in folder BaseDir, that one I haven't touched. Then I have created a new .htaccess (copied from the reply before) in folder somesite. still got the 404 error

    17741 Views
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14
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.