Multiple domains pointed to one site

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Aleister
    Junior Member
    • Sep 2004
    • 4

    #1

    Multiple domains pointed to one site

    One of the sites I have is a .com and I also want the .net and .org versions to point to it (they have allready been fixed in the registrar to point to me). I setup the account for the .com and it works fine, but I cannot seem to get the others to work. They just show "cpanel19.gzo.com" when I go to them.

    (Using multiple domains to go to one site is not a common practice for me, but I am trying to at least get it to work for this one site )

    The main problem might be this. The guy that owns the domain (He is a friend and this particular page is sort of a joint project) also has it pointing to his personal servers. He simply directed the URL to go to me. (actually it has to have the www, as sitename.com goes to his servers instead).

    This is a bit different than just a standard domain setup, where no matter what prefix you type (www, ftp, none at all) it always goes to your server.

    I have experimented with the many methods to do this in .htaccess but to no avail. My original intention was once they all point to the .com, to just use a 301 redirect to keep the search engines happy.

    Any ideas? I suppose I could setup another account for the .net and .org, giving them just a small amount of bandwidth and disk space.. only enough to stick a .htaccess in there to point it to the .com but that seems like a waste.

    Thanks for any info!
  • sdjl
    Senior Member
    • Mar 2004
    • 502

    #2
    It would make more sense to use the Parked Domain option under cPanel.
    You'd have to point the Name Servers to those that your main .com domain uses, but this is probably the most effective way to do what you're after.

    David
    -----
    Do you fear the obsolescence of the metanarrative apparatus of legitimation?

    Comment

    • Aleister
      Junior Member
      • Sep 2004
      • 4

      #3
      Ah, I don't know why I had not thought of that before! I am not used to this yet (having the main account panel, then the panel for each site )

      It worked great.. Now I can probably still use the 301 to turn the .net and .org to .com.

      Thanks again!

      Comment

      • Aleister
        Junior Member
        • Sep 2004
        • 4

        #4
        The htaccess method worked! Here is what I did in case someone else needs it:

        Code:
        RewriteEngine On 
        RewriteBase / 
        RewriteCond %{HTTP_HOST} sitename.net$ [OR] 
        RewriteCond %{HTTP_HOST} sitename.org$ 
        RewriteRule ^(.+) http://www.sitename.com/$1 [L,R=301]

        Comment

        • Pedja
          Senior Member
          • Mar 2004
          • 329

          #5
          Ue domainparkiing. It is cleaner soultion.

          However your rewrite rules are interesting, and very useful in situations when two domains are hostedon different servers. Thanks for a good tip.

          Comment

          Working...