Solved

Incorporate a site as a subdomain ?

Posted on 2013-12-20
3
179 Views
Last Modified: 2014-08-25
Two Drupal sites, siteA.com and siteB.com,  Both currently on seperate hardware, running on a LAMP stack.

We control front end, back end, and DNS on both.

If the goal is to transfer siteB to the same hardware as siteA, and make siteB a subdomain of siteA, like http://siteB.siteAcom, and make the User experience seamless, what's the best approach?

siteB can continue to function as a separate site, with some CSS modification to give it the look and feel of siteA.

I'm in the initial planning phase, so I'm wondering how to treat modules, libraries, core files, Apache Solr search, etc.  Do they need special consideration?

What's a good practice approach?
0
Comment
Question by:sandshakimi
3 Comments
 
LVL 3

Accepted Solution

by:
abhuvan earned 250 total points
ID: 39733230
There is a simple way to do it in the Domain control panel / Cpanel or Plesk panel.
this is called domain forwarding go to that section and you can assign the domain forward even for sub domain. you can use masking feature so that the user can still see the same sub-domain name as he typed in the address bar but  still can be redirect to your desired site.

In case of godaddy here is an example:

http://support.godaddy.com/help/article/422/forwarding-or-masking-your-domain-name
0
 
LVL 2

Assisted Solution

by:itkadmin
itkadmin earned 250 total points
ID: 39735329
You could do a multisite install https://drupal.org/documentation/install/multi-site
The assets for siteA would be in sites/default, the assets for siteB would be in Sites/siteB.siteA.com

Set DNS to direct siteB.siteA.com to the directory where you have drupal installed. If you are using CPanel, use the subdomain tool. drupal will then Look after the business of figuring out which assets are used by siteA.com and by siteB.siteA.com

You end up with two drupal sites, one of them in a subdomain, both using the same code base which makes updating a piece of cake. Especially if you are using drush.

You can also share theme elements, keep the theme in sites/all/themes. Have a theme for siteA, make a subtheme of siteA for siteB.SiteA.com.
0
 

Author Comment

by:sandshakimi
ID: 39736179
The multisite approach is one I'm trying to avoid.

With this plan, I don't care about having to support two diff. websites.
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

Healthcare providers, insurance companies and other covered entities trust eFax Corporate to transmit their most sensitive documents. eFax Corporate can help your organization implement a HIPAA compliant cloud faxing solution.
For cloud, the “train has left the station” and in the Microsoft ERP & CRM world, that means the next generation of enterprise software from Microsoft is here: Dynamics 365 is Microsoft’s new integrated business solution that unifies CRM and ERP fun…
This Micro Tutorial will explain how to export DynamoDB tables in Amazon Web Services.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now