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.

Archive

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

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

Moving SilverStripe into a Directory


Reply

4 Posts   1959 Views

Avatar
cindycin

3 October 2008 at 8:43am Community Member, 20 Posts

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?

Avatar
simon_w

3 October 2008 at 8:48am (Last edited: 3 October 2008 8:48am), Forum Moderator, 474 Posts

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.

Avatar
cindycin

3 October 2008 at 9:36am Community Member, 20 Posts

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?

Avatar
simon_w

3 October 2008 at 9:53am Forum Moderator, 474 Posts

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