Editing two separate domains on one C5 installation
Permalink
Hi all,
I have successfully implemented C5 on a site on a subdomain of a main site. Specifically, I created a subfolder on the clients hosting account and installed C5 there and pointed the domain to the C5 folder. The client would also like to edit the main domain. Do I have to install C5 in another directory for him to be able to do this?
Thanks in advance for any help.
I have successfully implemented C5 on a site on a subdomain of a main site. Specifically, I created a subfolder on the clients hosting account and installed C5 there and pointed the domain to the C5 folder. The client would also like to edit the main domain. Do I have to install C5 in another directory for him to be able to do this?
Thanks in advance for any help.
Sorry for any confusion. The current site is example.com/sub
The new site would be example.com
The C5 installation is in the example.com/sub folder
The new site would be example.com
The C5 installation is in the example.com/sub folder
So do you want two completely different sites, or do you want to move the C5 install into example.com?
I want to move the C5 install in example.com.
OK, here's how you do it:
1) remove/copy to a sub folder all files in root, except your C5 install. This should include .htaccess if present.
2) Remove the .htaccess from the c5 install folder.
3) Copy all files from your C5 install folder into root.
4) Edit config/site.php and look for the DIR_REL definition. It will be set to your C5 install folder - change it to '' i.e. nothing, blank the empty string.
5) Login in at example.com/index.php/login
6) Go to dashboard, sitewide settings and disable then renable pretty URLs - this will regenerate your .htaccess file with the correct values. If for any reason that doesn't work, you might need to paste the contents in by hand.
1) remove/copy to a sub folder all files in root, except your C5 install. This should include .htaccess if present.
2) Remove the .htaccess from the c5 install folder.
3) Copy all files from your C5 install folder into root.
4) Edit config/site.php and look for the DIR_REL definition. It will be set to your C5 install folder - change it to '' i.e. nothing, blank the empty string.
5) Login in at example.com/index.php/login
6) Go to dashboard, sitewide settings and disable then renable pretty URLs - this will regenerate your .htaccess file with the correct values. If for any reason that doesn't work, you might need to paste the contents in by hand.
Thanks for your help. I'll try that now. Much appreciated!
If I understand you correctly:
http://www.example.com => /root
sub.example.com => /root/sub
So both urls bring up different sites?