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 SS installtion to main /html folder on server


Go to End


2 Posts   1869 Views

Avatar
abelcreative

4 Posts

28 July 2007 at 5:04pm

Edited: 28/07/2007 5:05pm

Can I do that? I unzipped the folder and the auto-install put the whole site into /html/silverstripe-v2.0.2b - so all my links would be: http://www.mydomain.com/silverstripe-v2.0.2b/about-us, etc - can I move all the files out of that silverstripe-v2.0.2b folder and into my main /html folder?

Avatar
xmedeko

Community Member, 94 Posts

29 July 2007 at 9:51am

Edited: 29/07/2007 9:54am

yeah, you can copy it, or you can play with mod_rewrite in the main folder, maybe something like

RewriteEngine On                                                                                                                                                  

## Directory CRM is not in SilverStripe
RewriteRule ^CRM$ - [L]
RewriteRule ^CRM/.* - [L]                                                                                                                                    

## All other to SS
RewriteRule ^(.*)$ silverstripe/$1 [L,QSA]