17488 Posts in 4473 Topics by 1978 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1775 Views |
-
Moving SilverStripe into a Directory

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?
-
Re: Moving SilverStripe into a Directory

3 October 2008 at 8:48am Last edited: 3 October 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.
-
Re: Moving SilverStripe into a Directory

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?
-
Re: Moving SilverStripe into a Directory

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
| 1775 Views | ||
|
Page:
1
|
Go to Top |

