Jump to:

22977 Posts in 11806 Topics by 2826 members

General Questions

SilverStripe Forums » General Questions » Moving SS site to Root from Folder

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

Page: 1
Go to End
Author Topic: 945 Views
  • SuperBlues
    Avatar
    Community Member
    25 Posts

    Moving SS site to Root from Folder Link to this post

    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.

  • SSadmin
    Avatar
    Community Member
    90 Posts

    Re: Moving SS site to Root from Folder Link to this post

    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.

  • SuperBlues
    Avatar
    Community Member
    25 Posts

    Re: Moving SS site to Root from Folder Link to this post

    thanks i will give it a try

  • edk
    Avatar
    Community Member
    39 Posts

    Re: Moving SS site to Root from Folder Link to this post

    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.

  • SSadmin
    Avatar
    Community Member
    90 Posts

    Re: Moving SS site to Root from Folder Link to this post

    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

    945 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.