Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Moving SilverStripe into a Directory

Our old forums are still available as a read-only archive.

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

Page: 1
Go to End
Author Topic: 1897 Views
  • cindycin
    Avatar
    Community Member
    20 Posts

    Moving SilverStripe into a Directory Link to this post

    I have SilverStripe installed at the top level of my site/server. I would like to move it... and the site built with it... under a folder/directory. So now the site I build will be under http://www.MYDOMAIN.com/FOLDER/

    Is this easy to do? Can I simply drag the files into the folder? How will this affect the database that is associated with SilverStripe?

    What steps do I need to take/follow to have my SilverStripe site moved into its own directory?

  • simon_w
    Avatar
    Forum Moderator
    467 Posts

    Re: Moving SilverStripe into a Directory Link to this post

    You need to move all files (including .htaccess) into the subfolder.

    You may also need to edit .htaccess to change the RewriteBase.

    Then do a db/build?flush=1 and it should work.

  • cindycin
    Avatar
    Community Member
    20 Posts

    Re: Moving SilverStripe into a Directory Link to this post

    You may also need to edit .htaccess to change the RewriteBase.

    What would I change it to?

    Also, will the database still link up when I change the location of SilverStripe?

  • simon_w
    Avatar
    Forum Moderator
    467 Posts

    Re: Moving SilverStripe into a Directory Link to this post

    I'm guessing that at the moment, it's /. You'll need to change it to /FOLDER/.

    The database will still link up, but some of the manifest files may not, hence why you'll need to run http://www.mydomain.com/FOLDER/db/build?flush=1

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