Moving C5 Site to new Directory on Same Server
Permalink
Hi there -
I'm a C5 novice and am building one of my first few sites on the platform.
Site was located athttp://FirstDomain.com/concrete... and I was attempting to copy it to the final destination athttp://SecondDomain.com (in the same hosting account).
I exported my database from the existing site, made a new database and successfully imported it in. I copied all the files making sure nothing was left out....and then edited the site.php file accordingly. I did forget to empty my cache before the file transfer so deleted manually after it had completed (as well as the files/tmp contents). I edited my .htaccess file accordingly to point directly to the Root folder. (RewriteBase / )
When I attempted to pull up the site, all the content loaded, however there was a blank white bar at the top of the page where the dashboard should be and my drop menu's no longer worked. Login page would bring me bak to homepage. However, I Accessed Settings direct through URL and disabled Pretty URL's, which didn;t help the drop menus or dashboard...The one link on my Nav with no drop menu worked and pointed to the right page....
I then decided to point the site back to the original Database that was created for the existing site so that both pointed to the same database and All worked fine. Including the menus and dashboard.
I'm curious where did I go wrong?!?! If I still want to create a NEW database and import in the existing site (leaving the first one untouched) what should i change in this process. I was baffled it didn't work after following the instrcutions so carefully. (http://www.concrete5.org/documentation/installation/moving_a_site/... ) & (http://www.concrete5.org/documentation/how-tos/developers/how-to-move-a-site-from-1-directory-on-a-server-to-a-new-directo/)
Can anyone please help me understand this? Thanks in advance.
On another note, Was going to attempt to implement the cms1/cms2 idea from this link (http://www.concrete5.org/documentation/how-tos/developers/organise-your-concrete5-web-space-for-risk-free-upgrades/) but wasnt sure the most reliable way to point a domain to a subfolder through the host as its mentioned. Any suggestions for me? Thanks so much
~Trent
I'm a C5 novice and am building one of my first few sites on the platform.
Site was located athttp://FirstDomain.com/concrete... and I was attempting to copy it to the final destination athttp://SecondDomain.com (in the same hosting account).
I exported my database from the existing site, made a new database and successfully imported it in. I copied all the files making sure nothing was left out....and then edited the site.php file accordingly. I did forget to empty my cache before the file transfer so deleted manually after it had completed (as well as the files/tmp contents). I edited my .htaccess file accordingly to point directly to the Root folder. (RewriteBase / )
When I attempted to pull up the site, all the content loaded, however there was a blank white bar at the top of the page where the dashboard should be and my drop menu's no longer worked. Login page would bring me bak to homepage. However, I Accessed Settings direct through URL and disabled Pretty URL's, which didn;t help the drop menus or dashboard...The one link on my Nav with no drop menu worked and pointed to the right page....
I then decided to point the site back to the original Database that was created for the existing site so that both pointed to the same database and All worked fine. Including the menus and dashboard.
I'm curious where did I go wrong?!?! If I still want to create a NEW database and import in the existing site (leaving the first one untouched) what should i change in this process. I was baffled it didn't work after following the instrcutions so carefully. (http://www.concrete5.org/documentation/installation/moving_a_site/... ) & (http://www.concrete5.org/documentation/how-tos/developers/how-to-move-a-site-from-1-directory-on-a-server-to-a-new-directo/)
Can anyone please help me understand this? Thanks in advance.
On another note, Was going to attempt to implement the cms1/cms2 idea from this link (http://www.concrete5.org/documentation/how-tos/developers/organise-your-concrete5-web-space-for-risk-free-upgrades/) but wasnt sure the most reliable way to point a domain to a subfolder through the host as its mentioned. Any suggestions for me? Thanks so much
~Trent
You are correct in the second paragraph. You need a hosting provider that will let you have multiple domains and subdomains within the same account, so you get to decide, through the host control panel, which folders any particular domain points to.
To be honest, I have never experienced a hosting provider that does not let you decide where a domain points, even on the cheapest starter accounts (because they all want to sell us extra domain names to make more money out of us). So I wrote the howto on the basis that it was a facility that any hosting account would have.
If anyone wants to provide me with the names of hosting providers and account packages that don't let you decide where domain name gets to point, I will start adding a list of them as a footnote to the howto.
To be honest, I have never experienced a hosting provider that does not let you decide where a domain points, even on the cheapest starter accounts (because they all want to sell us extra domain names to make more money out of us). So I wrote the howto on the basis that it was a facility that any hosting account would have.
If anyone wants to provide me with the names of hosting providers and account packages that don't let you decide where domain name gets to point, I will start adding a list of them as a footnote to the howto.
Sorry for the delay on on replying, however I have confirmed for a fact that IX-Webhosting -http://www.ixwebhosting.com/ - is not built around a c-panel therefore does NOT allow you to point your domains where you want them (with URL masking). I believe, if I understood right, they are built around H-sphere.
Needless to say I'm going to be changing hosting providers when I can. Any suggestions John?
Turns out I had some javascript conflicts that were preventing my site from moving properly to the new location. For anyone finding this post about moving a site, you have to be sure EVERY URL is switched over to the new path for everything to flow smooth. And disable any javascript you have implemented prior to moving (helped me keep everything straight in the location).
Thanks -
Needless to say I'm going to be changing hosting providers when I can. Any suggestions John?
Turns out I had some javascript conflicts that were preventing my site from moving properly to the new location. For anyone finding this post about moving a site, you have to be sure EVERY URL is switched over to the new path for everything to flow smooth. And disable any javascript you have implemented prior to moving (helped me keep everything straight in the location).
Thanks -
http://www.mysite/cms1/contact-us
I think johnthefish' recommendation has to be done via your hosting provider - that is, to change the location of the public_html folder that your primary domain is pointing to (change it to a sub-folder) - because I can't change it in cpanel with my hosting provider (I tried setting up a sub-domain but got the same issue mentioned above).
I thought I could manage a C5 installation in its own sub-folder by using .htaccess files (like you can with wordpress?) but I read that you will always have the name of your sub-folder in the URL.
There is a way to remove the sub folder form your URL, as I read here...
http://www.concrete5.org/documentation/how-tos/developers/hide-the-...
...but I thought it was just easier to just move the site to the root.