Instalation files in mydomain.com/dir/ But I would like to see my site on mydomain.com
Permalink
Hello,
I have installed C5 in sub-folder mydomain.com/dir/ because I was building a new site.
Now the site is almost finished and I would like to keep the installation files under this sub-folder mydomain.com/dir/ and be able to see my site on mydomain.com
How can I do this? Anybody knows?
Thank you in advance! C5 rulez :0)
I have installed C5 in sub-folder mydomain.com/dir/ because I was building a new site.
Now the site is almost finished and I would like to keep the installation files under this sub-folder mydomain.com/dir/ and be able to see my site on mydomain.com
How can I do this? Anybody knows?
Thank you in advance! C5 rulez :0)
copy all the files and folders under mydomain/dir to mydomain by downloading and uploading them and then in confiig/site.php delete the directory name.
Are you saying that site will stay the same as it is now? I have texts pictures and everything on it?
Yup, should look exactly the same. Just be sure to copy everything from that top directory (including many of the folders which hold nothing and not just /concrete), save it locally, and then reupload it at the current domain.
Assuming your paths to images in your theme are relative (images/myimage.jpg), everything should port over fine. And since you are under the same domain, you shouldn't need to mess with the SQL database connection, only the base url. Find the files config/site.php and find the line BASE_URL. The current value should be mydomain.com/dir. Change to mydomain.com. You're all set!
One tip for staging future sites- create and build sites at subdomains so that there's no need to copy files like this. For example, we develop sites athttp://clientsdomain.testserver.com... (testserver.com representing the name of a domain we own and happen to use for testing). As soon as it's ready to launch, it's simply a matter of changing the domain fromhttp://clientsdomain.testserver.com->http://clientsdomain.com... under my host manager (we use WHM Accelerated with Hostgator). Then we simply modify the BASE_URL is site.php and we're all set. No copying of files!
Assuming your paths to images in your theme are relative (images/myimage.jpg), everything should port over fine. And since you are under the same domain, you shouldn't need to mess with the SQL database connection, only the base url. Find the files config/site.php and find the line BASE_URL. The current value should be mydomain.com/dir. Change to mydomain.com. You're all set!
One tip for staging future sites- create and build sites at subdomains so that there's no need to copy files like this. For example, we develop sites athttp://clientsdomain.testserver.com... (testserver.com representing the name of a domain we own and happen to use for testing). As soon as it's ready to launch, it's simply a matter of changing the domain fromhttp://clientsdomain.testserver.com->http://clientsdomain.com... under my host manager (we use WHM Accelerated with Hostgator). Then we simply modify the BASE_URL is site.php and we're all set. No copying of files!
warpol, he won't have to change the BASE_URL only DIR_REL, if you want, you can actually delete both the lines,
Mnkras,
thanx, will see what will happened :0)
thanx, will see what will happened :0)
Warpol,
thank you for your exact answer. Will do it like you wrote.
Thanx for extremely quick support guys!
I am proud to be a part of these C5 community, and finally found what I was looking for! :0)
Thank you for advice about my future projects.
Will sure try to do it this way!
I will let you know if everything went OK with theme from this topic.
thank you for your exact answer. Will do it like you wrote.
Thanx for extremely quick support guys!
I am proud to be a part of these C5 community, and finally found what I was looking for! :0)
Thank you for advice about my future projects.
Will sure try to do it this way!
I will let you know if everything went OK with theme from this topic.