[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Follow up to Mutliple Domains
- Subject: Re: [cobalt-users] Follow up to Mutliple Domains
- From: Kul <WebMaster@xxxxxxx>
- Date: Sun Mar 4 15:07:02 2001
- Organization: Qax
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
Nick Ciantro wrote:
> <snip>
> For example:
> dm.com and domain.com have the same site. But not matter which domain you
> use, it stays under that domain in the browser. They one domain doesnt just
> forward you to another one. Bu they use the same files. The reason we want
> to set up two domain is for multple submissions to search engines. Are they
> basically just creating two virtual sites and uploading their files to both
> sites when they make updates, or is there something that can be done within
> the DNS settings that would have the server use the same files for both
> domains. So to the visitor, dm.com and domain.com would appear to be stand
> alone site. Not like some sites where you type min dm.com and it just sends
> you to domain.com
> Hope this all makes sense. Thanks in advance for any replies.
> Nick
Hi Nick,
Yes this (if I understand you correctly) is possible by using the ServerAlias tag in the httpd.conf, as mentioned by others, but you may also want to comment (#) out the lines that perform any rewriting of the url for the site in question. ie..
Add these two lines:
ServerAlias alternativedomain.com
ServerAlias www.alternativedomain.com
Alter these to look like this:
#RewriteEngine on
#RewriteCond %{HTTP_HOST} !^123.123.123.123(:80)?$
#RewriteCond %{HTTP_HOST} !^www.originaldomain.com(:80)?$
#RewriteRule ^/(.*) http://www.originaldomain.com/$1 [L,R]
#RewriteOptions inherit
-Then restart the httpd server!
Now when you type in the url (www.originaldomain.com) you will still see the original site, but the url will not be rewritten, so CAPS will showup now in the browser location bar if entered! Subsequently if you were to type in the NEW url (www.alternativedomain.com) this will be show in the browser location bar (CAPS also apply here too). Both of these domains will show the exact same site, and their is ONLY one copy of all the files in reality, but their appears to be two site (identicle in content). I think this is what your asking!
Be aware that this does not add support for email (see the archives for how to add this correctly) And also be aware that I beleive that this may cause problems if you later/already use SSL for this domain!
You may find the GUI will mess these settings up if you modify the site settings!
--
Regards, .~~~.
Kul (Raq549) ( ® ® ) ICQ#101230756 http://www.qax.org/
_________oooO_\_o_/_Oooo____ 24hr Voice/Fax:0870 1684475
__|_____|_____|_____|_____|_____ mailto:aka.Kul@xxxxxxx
Any Syntax or Spelling Errors are nothing to do with me,
They must be Transmission Errors!