Moving a website

Permalink
I built a website, but put it in a subdirectory /c5 until I had it ready to publish live. I am now ready, to go live, and I cant seem to get it to show up properly under public_html. What now shows ins a blank site.
I downloaded a blank copy of concrete5 directly under public_html and then moved all the files there. I also transferred the database .... the think and redirected the file to show the new one.
But. the files aren't there when I try logging.
Please help.....I just don't know how to make it show up properly.
Ugh.
Colleen

wawahue
 
mesuva replied on at Permalink Reply
mesuva
Hi Colleen,

when you move a site and change the way it is nested under folders, if you have pretty URLs enabled the .htaccess file normally needs to be edited as well.

In your .htaccess file you're likely to have a line:
RewriteBase /c5

If you have the site at the web root level (i.e. just in pubic_html), it just needs to be:
RewriteBase /
wawahue replied on at Permalink Reply
wawahue
Thanks for the tip, but I didn't set it up for pretty url's at this point because the last time I did that, I screwed up my site and had to start over. So the .htaccess was empty.
I copied all the database files to the one associated with the new one I put directly in the public_html but I don't actually know how to read them so not sure if the database has the correct files.
How do I find my actual pages?
Colleen
Gondwana replied on at Permalink Reply
Gondwana
When you say 'copied all the database files', do you mean exported from the old site's database, them imported to the new site's database?
wawahue replied on at Permalink Reply
wawahue
no, I just copied them over, do I need to export then import?
Gondwana replied on at Permalink Reply
Gondwana
TBH, I don't know. The documentation at
http://documentation.concrete5.org/developers/installation/moving-a...
seems to prefer exporting and importing, so I'd try that. I've always followed that documentation closely and it's always worked for me.
mesuva replied on at Permalink Reply
mesuva
I'd agree that following a set of instructions is going to be your best bet. I think there might be a few floating around the concrete5 site and forums.

I get the feeling you might be confusing what is the database, versus what are the files to run concrete5. You generally can't see/access the files for your database, so if you've moved files you are really only talking about the files that run concrete5, your theme, packages, etc.

The actual database is going to be stored within a MySQL database. As per the instructions you need to take a copy of the database, often referred to as a database dump. You then load that into a blank database at the new server. The final step is adjusting your concrete5 install to point at the new database, with the correct login connection credentials. The instructions linked talk about using the command line to do the database backup, but more often than not you have something like PHPMyAdmin available via a control panel such as cPanel.

If databases are very foreign to you, this might be a case of simply engaging a web developer to make the move for you - moving sites is something developers do all the time. You can always post a job in the jobs part of the forum.