How can I move a Site?

Permalink
Hi all,

I develope a site under a special domain: new.mydomain.com. When I m ready with the site, I ve to move it to the main domainhttp://www.mydomain.com.

Is it ok to move the Concrete5-Files and Folders from /my/webroot/new/httpdocs to /my/webroot/www/httpdocs? Or is it better to install a fresh version of concrete5?

If moving files is ok, is there to change any configfiles and settings from the old-domain-name to the new-domain-name within concrete5?

Thanks for your advice
trickler

View Replies:
mnakalay replied on at Permalink Reply
mnakalay
Hello,

Here's a tutorial to help you with that:https://documentation.concrete5.org/developers/installation/moving-a...
trickler replied on at Permalink Reply
Thank you for the link. It looks good :)
alanhalley replied on at Permalink Reply
alanhalley
A related issue, if I may.

I built a new C5.8 website to replace an old C5.6 site and wasn’t sure how make the switch to the new site so I contacted tech support at my hosting service thinking I just needed to somehow point my domain to the new site. Tech support moved the old site into a new directory and put the new C5.8 files into the old directory. The site displays properly, but I get a 404 after I enter my username and password.

How can this be fixed?

Thanks.

Alan
mnakalay replied on at Permalink Reply
mnakalay
It's hard to tell without any more information but here are a few things you can try.

First see if you can still reach the dashboard. If yes try to empty the cache.

If not, you'll have to delete the cache manually by emptying the folder application/files/cache on your server.

That might solve the problem.

You might also want to check if an old htaccess file from the legacy installation was not left behind and is acting up.
Gondwana replied on at Permalink Reply
Gondwana
Could it possibly be something to do with a canonical URL setting in a config file?
alanhalley replied on at Permalink Reply
alanhalley
I can’t reach the dashboard. I manually cleared the cache and now get a 500 error after entering my username and password.
alanhalley replied on at Permalink Reply
alanhalley
.htaccess file contains
# Use PHP7 Single php.ini as default
AddHandler application/x-httpd-php70s .php
Gondwana replied on at Permalink Reply
Gondwana
Did you have 'pretty URLs' enabled prior to moving the site?

Had you specified a canonical URL prior to moving the site?
alanhalley replied on at Permalink Reply
alanhalley
Pretty URLs we’re turned on. I’m not sure about a canonical URL.
Gondwana replied on at Permalink Reply
Gondwana
I suspect the .htaccess (or equivalent) applicable to the new location needs work.
alanhalley replied on at Permalink Reply
alanhalley
I have another related issue. The files in my old website were moved to a new directory and I now have a problem with “Writable Files and Configuration Directories” athttp://alanhalley.com/alanhalleyold/....

How do I resolve this issue?

Thanks for any help.

Alan
mnakalay replied on at Permalink Reply
mnakalay
That's just really weird.
I can have a quick look for you if you want. Feel free to contact me by direct message.
mnakalay replied on at Permalink Reply
mnakalay
@Godwana, your intuition was correct, htaccess needed some TLC :)
alanhalley replied on at Permalink Reply
alanhalley
Thank you so much for fixing my .htaccess file, Nour.

Alan
mnakalay replied on at Permalink Reply
mnakalay
You're very welcome