Subdomain to Main Domain Joomla site

Relax and enjoy The Lounge. For all Non-Joomla! topics or ones that don't fit anywhere else. Normal forum rules apply.
Post Reply
malloryw
Joomla! Apprentice
Joomla! Apprentice
Posts: 38
Joined: Fri Dec 21, 2018 6:57 pm

Subdomain to Main Domain Joomla site

Post by malloryw » Fri Apr 26, 2019 2:34 pm

I have a Joomla site on a main domain and another one on a subdomain of that site. I'd like to move the subdomain to be the main domain. I was planning to delete the folders in the public_html directory of the main domain and then replace them with the corresponding folders from the subdomain. I was just wondering.. is there anything else I need to plan on doing to make sure it's the new site that shows when I enter the main domain URL and not the old site? The sites have separate databases if that matters.

User avatar
djadan
Joomla! Apprentice
Joomla! Apprentice
Posts: 35
Joined: Fri May 24, 2013 10:03 am
Location: London, England
Contact:

Re: Subdomain to Main Domain Joomla site

Post by djadan » Fri Apr 26, 2019 2:51 pm

If you don't need the site that's on the main domain ie it's being replaced by the one on the subdomain you should just be able to move the "main" files into a folder called _SAFE or _old and move the subdomain files in. Probably safest not to delete anything till you've tested everything.
Trying to get things done the right way with a good balance between life and work.
Joomla developer in London - www.djalondon.co.uk

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 18855
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: Subdomain to Main Domain Joomla site

Post by infograf768 » Sat Apr 27, 2019 5:31 am

+ evidently correcting the configuration.php to get the right urls.
Jean-Marie Simonet / infograf · http://www.info-graf.fr
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 25878
Joined: Mon Oct 27, 2008 9:27 pm
Location: Akershus, Norway

Re: Subdomain to Main Domain Joomla site

Post by Per Yngve Berg » Sat Apr 27, 2019 6:53 am


malloryw
Joomla! Apprentice
Joomla! Apprentice
Posts: 38
Joined: Fri Dec 21, 2018 6:57 pm

Re: Subdomain to Main Domain Joomla site

Post by malloryw » Mon May 06, 2019 4:16 pm

Thank you! I did not know about correcting the configuration.php file so I will be sure to do that as well. I appreciate the suggestion not to delete the main site right away, I will be moving it into an "old" folder.


Post Reply

Return to “The Lounge”