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   1038 Views

Avatar
SuperBlues

Community Member, 25 Posts

12 March 2010 at 8:46am

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

Community Member, 90 Posts

12 March 2010 at 9:11am

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

Community Member, 25 Posts

12 March 2010 at 9:13am

thanks i will give it a try

Avatar
edk

Community Member, 39 Posts

12 March 2010 at 9:27am

Edited: 12/03/2010 9:27am

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

Community Member, 90 Posts

12 March 2010 at 9:49am

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