Results 1 to 5 of 5

301 multiple domains

This is a discussion on 301 multiple domains within the Troubleshooting forums, part of the vBSEO SEO Plugin category; Hello, Currently I'm trying to 301 a domain (b) to another (main) domain (a). Meaning, I've set up a separate ...

  1. #1
    Senior Member Cor van Noorloos's Avatar
    Real Name
    Cor van Noorloos
    Join Date
    Mar 2008
    Location
    Werkendam, The Netherlands
    Posts
    178
    Liked
    0 times
    Blog Entries
    1

    301 multiple domains

    Hello,

    Currently I'm trying to 301 a domain (b) to another (main) domain (a).
    Meaning, I've set up a separate account for domain b, and letting an .htaccess file handle the rest.

    Would it be possible to redirect both http://www.domain-b.com/ AND http://domain-b.com/ to http://domain-a.com/?

    Currently I have
    Code:
    RewriteEngine On
    
    RewriteCond %{HTTP_HOST} ^www\.domain-b\.com$
    RewriteRule ^(.*)$ http://domain-a.com/$1 [L,R=301]
    but it doesn't seem to redirect http://domain-b.com/ to http://domain-a.com/

    Also, would a robots.txt file for domain b, including
    Code:
    User-agent: *
    Disallow: /cgi-bin/
    only, be advised in this situation?

  2. #2
    Senior Member Cor van Noorloos's Avatar
    Real Name
    Cor van Noorloos
    Join Date
    Mar 2008
    Location
    Werkendam, The Netherlands
    Posts
    178
    Liked
    0 times
    Blog Entries
    1
    Never mind,
    Code:
    RewriteEngine On
    
    RewriteCond %{HTTP_HOST} ^domain-b\.com$
    RewriteRule ^(.*)$ http://domain-a.com/$1 [L,R=301]
    RewriteCond %{HTTP_HOST} ^www\.domain-b\.com$
    RewriteRule ^(.*)$ http://domain-a.com/$1 [L,R=301]
    seems to work fine

  3. #3
    Senior Member
    Real Name
    Michael Biddle
    Join Date
    Jan 2007
    Location
    Southern California
    Posts
    7,097
    Liked
    4 times
    The Forum Hosting - Forum Hosting from the Forum Experts

  4. #4
    Senior Member Cor van Noorloos's Avatar
    Real Name
    Cor van Noorloos
    Join Date
    Mar 2008
    Location
    Werkendam, The Netherlands
    Posts
    178
    Liked
    0 times
    Blog Entries
    1
    Hello Michael,

    I didn't knew that. Much appreciated!

  5. #5
    Senior Member
    Real Name
    Michael Biddle
    Join Date
    Jan 2007
    Location
    Southern California
    Posts
    7,097
    Liked
    4 times
    Not a problem
    The Forum Hosting - Forum Hosting from the Forum Experts

Similar Threads

  1. Multiple domains = problems
    By Nikke86 in forum General Discussion
    Replies: 7
    Last Post: 04-15-2010, 10:25 PM
  2. Multiple domains, one forum
    By Cor van Noorloos in forum General Discussion
    Replies: 4
    Last Post: 07-07-2008, 08:44 AM
  3. Multiple Domains with vBSeo
    By MaxS in forum General Discussion
    Replies: 2
    Last Post: 09-21-2007, 09:53 PM
  4. Adding multiple domains
    By Snake in forum General Discussion
    Replies: 33
    Last Post: 09-07-2007, 12:16 AM
  5. Using multiple domains for the same forum
    By Adult SEO in forum General Discussion
    Replies: 0
    Last Post: 12-14-2006, 07:22 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •