First of all, let me apologize in advance as this may be a poorly worded question. My knowledge of Drupal is limited so I'm not even sure of the exact area where my problem is. I'm looking for pointers in the right direction so I can do more research on my own for an answer.
The Original Situation
I have two domains - let's call them example.com
and example.net
. The site was originally built for example.net
and it is hosted at BlueHost with the following folder structure:
/root
/public_html
/drupal
... standard Drupal folders
/sites
/all (this is where all my site files are)
So basically, the entire Drupal installation is in a subdirectory of public_html
. I can access URL's such as http://example.net/contact
with no problem. So far, so good.
The Wrinkle
Where it starts to get complicated is when we bought example.com
. As the primary domain, it points towards /root/public_html
. So, I dusted off my Apache skills and fashioned an .htaccess file to redirect .com to .net, like so:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^(www.)?example.com$
RewriteCond %{REQUEST_URI} !^/drupal/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /rings/$1
RewriteCond %{HTTP_HOST} ^(www.)?example.com$
RewriteRule ^(/)?$ drupal/index.php [L]
The Problem
Now, if I go to http://example.com/contact
, it does come up with a Drupal page, so I know that the rewrite rules are working. However, I get a page that says that The requested page "/contact" could not be found.
I want users to be able to use either domain. That is, http://example.com/contact
and http://example.net/contact
should go to the same page. So this is where I'm stuck. I'm not even sure where the general area of the problem is. Do I need to set up a multi-site configuration? That doesn't sound right because I'm only running one site. Is it something to do with the domain access module? That sounds more like something to run multiple sites of one Drupal installation. Any pointers at all will be greatly appreciated. Thanks in advance!
example.com
andexample.net
. They are both alternate domains for the same site, so I want users to be able to use either domain. That is,http://example.com/contact
andhttp://example.net/contact
should go to the same page.