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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

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

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

Moving SilverStripe into a Directory


Go to End


4 Posts   2610 Views

Avatar
cindycin

Community Member, 20 Posts

3 October 2008 at 8:43am

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
(deleted)

Community Member, 473 Posts

3 October 2008 at 8:48am

Edited: 03/10/2008 8:48am

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

Community Member, 20 Posts

3 October 2008 at 9:36am

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
(deleted)

Community Member, 473 Posts

3 October 2008 at 9:53am

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