Hosting Multiple Domains seamlessly with same site code, theme, modules, data etc. not a multisites situation! I would like to use D7 to support two domains with same code, themes, modules and even database and content, completely transparent to the end-user.

So, user of oxustech.com would see only oxustech.com and user of oxustechnolgies.com would see only oxustechecholgies.com (not be redirected to oxustech.com).

We don't want to use forwarding/frame forwarding. because frame forwarding will hide the full url and will show every url as oxustechnologies.com only.

The site is under shared hosting and we don't have enough permission to change the Apache setting.

Pointing oxustechnologies.com to same htdocs didn't work.
This has worked for me in the past. Given the following assumptions:


I assume the server is already configured to direct requests for the domain oxustech.com to the correct site (meaning that this is already working for you)
I assume Drupal is finding for your site's settings.php file in the directory /sites/oxustech.com/settings.php
I assume you want to make requests for the domain oxustechnologies.com to show the SAME site (same database) as oxustech.com, but displaying the domain oxustechnologies.com as the base URL for all pages accessed through this requests.


IF this is the case, this has worked for me. Try this:


In the /sites directory, rename the file example.sites.php to sites.php
Add the following line at the end: $sites['oxustechnologies.com'] = 'oxustech.com';


This will effectively tell Drupal that oxustechnologies.com is an "alias" of oxustech.com, will use all settings (including the database) for oxustech.com. It will also always display oxsutechnologies.com as the base URL when you navigate inside the site. But people who access the site through the name oxustech.com will continue to see that as the base URL.