Publishing C5 site?
Permalink
Hi,
I made a C5 version of my site in a subdirectory --http://www.example.com/c5
So everything is in this c5 folder. I would now like to move it up, so that whenhttp://www.example.com is accessed, it goes to c5's index.php
What is the proper procedure for doing this? Do I need to copy/paste everything out of this folder? to the main? Do I need to change settings somewhere? Anything that will probably mess up?
Any input appreciated! Thank you.
Andrey
I made a C5 version of my site in a subdirectory --http://www.example.com/c5
So everything is in this c5 folder. I would now like to move it up, so that whenhttp://www.example.com is accessed, it goes to c5's index.php
What is the proper procedure for doing this? Do I need to copy/paste everything out of this folder? to the main? Do I need to change settings somewhere? Anything that will probably mess up?
Any input appreciated! Thank you.
Andrey
Make sure you first do a backup. It's always a good idea. The last thing you want is to loose all your hard work.
I've looked at the concrete/config/site.php file and it's different in 5.8 than it was in 5.6. How do I do this in 5.8?
Did you ever figure out how to move the c5 site from sub directory to root in version 8?
Should just work by drag/drop. You don't need to define anything. If you have canonicals set though, make sure to change those though (https://documentation.concrete5.org/editors/dashboard/system-and-maintenance/seo-and-statistics/pretty-urls). They will go into /application/config/concrete.php
In case you have pretty URL's enabled and a .htaccess in your root, look for RewriteBase /. You should change the slash (/) into the directory you are placing it into. If it's domain.com/my_folder, you should make it RewriteBase /my_folder/. Or if it's domain.com/my_folder/another, make it RewriteBase /my_folder/another/
In case you have pretty URL's enabled and a .htaccess in your root, look for RewriteBase /. You should change the slash (/) into the directory you are placing it into. If it's domain.com/my_folder, you should make it RewriteBase /my_folder/. Or if it's domain.com/my_folder/another, make it RewriteBase /my_folder/another/
I was just able to clear the cache within applications/files/cache and that solved my issue.
Thanks for the reply!
Thanks for the reply!
In addition to changing the config/site.php file as tallacman suggests, you also want to edit the .htaccess file (if one exists) at the top-level of your concrete5 site, and if you see "RewriteBase" in it, whatever it says change it to this:
Also, after you've moved it, log in and do these things:
1) Dashboard -> Sitewide Settings: Click the "Clear Cache" button
2) Dashboard -> Sitewide Settings -> Debug: Set Debug Level to "Production", click "Set Debug Level" button.
3) Dashboard -> System & Maintenance: click the "Run Checked" button in top-right corner.
RewriteBase /
Also, after you've moved it, log in and do these things:
1) Dashboard -> Sitewide Settings: Click the "Clear Cache" button
2) Dashboard -> Sitewide Settings -> Debug: Set Debug Level to "Production", click "Set Debug Level" button.
3) Dashboard -> System & Maintenance: click the "Run Checked" button in top-right corner.
Thank you! Followed all your instructions, and everything worked excellently -- much appreciated.
Andrey
Andrey
I attempted to do this exact thing under Concrete5 version 5.6.0.2 and the website functions, except I get no ability to continue to edit (the concrete5 sign in option and such is missing from the bottom of the page) as well as none of the pictures working. So I simply cannot do the delete cache option.
In my config folder site.php exists but there's no options to change the directory inside of it. Please advise.
In my config folder site.php exists but there's no options to change the directory inside of it. Please advise.
Try going directly to the 'Clear Cache' page of the dashboard by putting this in your address bar:
That should ask you to log in and then send you directly to the 'Clear Cache' page so you can clear your cache. I would also suggest going to the dashboard immediately and turning Pretty URL's off and back on again to get that to reflect the new structure.
Also, version 5.6 doesn't need the DIR_REL values in config.php so you're fine without those lines.
http://www.yoursite.com/index.php?cID=68
That should ask you to log in and then send you directly to the 'Clear Cache' page so you can clear your cache. I would also suggest going to the dashboard immediately and turning Pretty URL's off and back on again to get that to reflect the new structure.
Also, version 5.6 doesn't need the DIR_REL values in config.php so you're fine without those lines.
One other little thing to bear in mind. Addons such Dynamic iFrame require a complete url in order to work. Clearly if you are using them moving up the tree will break those so make a note, you will have to manually edit them.
define('DIR_REL', '/c5');
to
define('DIR_REL', '');
Steve