1259 Posts in 348 Topics by 484 members
|Go to End|
19 January 2012 at 3:07am Last edited: 19 January 2012 3:09am
I would like to install Silverstripe 2.4.6 in a sub dirctory (folder?) in the root directory of my server i.e. ./newsite1 . I need to be able to do this because I host more than one site on this hosting account. Having looked through the forum I have found some older posts that identify several problems with this approach. The problems seem to be as follows:
1 doing this makes URL look like mystite.com/newsite1.
There are suggestions as to how to fix this. One is that you only copy the contents of the silverstripe folder to the sub directory folder. Does this solve the problem and if so should I do this when uploading the files via ftp (before installation) or after installation?
2 There are various references to the need to add an .htaccess file to the root directory and also to modify the .htaccess and config.php files in Silverstripe but does not specify which .htaccess or config.php files to change (there are several in different folders).
The posts on the forum were made about a year ago. Have these issue been addressed in version 2.4.6 or do I still need to make changes to get the site to work through a sub directory in the root directory?
If I still need to make changes can anyone tell me what I need to do in the htaccess files?
Hoping there is a simple solution to these because Silverstrip looks great for my purposes but my experienc and understanding of htaccess and server settings is not great.
Appologies but I seem to have posted this in wrong forum and it should have been in installation forum
20 January 2012 at 4:08pm
You should only ever need to edit the .htaccess file in your root directory and the _config.php file in your mysite folder. Editing any of the other core folders is not ideal as it'll make upgrading harder for you later one.
If you don't want the url to be /newsite1 then yes, one way is to just not store the site in a subfolder. If you want to put it in a subfolder you will need to alter the VirtualHost (if you're on a VPS) to point the DocumentRoot to your new subfolder. Most shared hosts however, you'll be unable to alter the document root.
|Go to Top|