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.

General Questions

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Moving SS site to Root from Folder


Reply

5 Posts   1015 Views

Avatar
SuperBlues

12 March 2010 at 8:46am Community Member, 25 Posts

Hi, I hope you can give me some advioce here guys!

I have a static site running currently and am changing this to a SS site which I have built but I have placed the whole SS site into a folder in the root called 'CMS'. So it goes www.mysite.com/cms/ (the SS site site here).

I have finished testing the SS site and everything works great but now need to replace the old static site, which sits in the root, with the SS site.

So, do I simply delete all the staic site files and upload the SS files to the root (which is what I think i should do) but I suspect I will have to change some other files such as config or similar. Which files would I have to change and is there a simple way to do this?

Thanks for your help here.

Avatar
SSadmin

12 March 2010 at 9:11am Community Member, 90 Posts

you should work on .htcaccess file .
Add rewriteBase.

Edit the .htacess file adding the following code
RewriteEngine On
RewriteBase /cms

May works. have a try.

Avatar
SuperBlues

12 March 2010 at 9:13am Community Member, 25 Posts

thanks i will give it a try

Avatar
edk

12 March 2010 at 9:27am (Last edited: 12 March 2010 9:27am), Community Member, 39 Posts

If you are moving your SS code to the root...you would need adjust your .htaccess file as follows:

RewriteEngine On
RewriteBase /

Note: this almost the same as SSAdmin's response but you no longer would need the 'cms' in the rewrite path when you go to the root.

Avatar
SSadmin

12 March 2010 at 9:49am Community Member, 90 Posts

Hi,@chingochango.. you r right..
I didnt notice he has finished the site-construction and want to make it public.

@SuperBlues. Try the one without "cms" if you wannt to publish your site.

Using RewriteBase /XXX to hide your site before your finishing your site construction.

Thanks for pointing out, chingochango.
All Good