Results 1 to 10 of 10

Redirecting Domains

This is a discussion on Redirecting Domains within the General Discussion forums, part of the vBulletin SEO Discussion category; Hi all, was hoping for some input on this. I have two registered domains: .com and .net. .com is my ...

  1. #1
    Member
    Real Name
    Jason
    Join Date
    Mar 2008
    Location
    Washington, DC
    Posts
    73
    Liked
    0 times

    Redirecting Domains

    Hi all, was hoping for some input on this. I have two registered domains: .com and .net.

    .com is my primary and .net is pointed to the same directory as .com.

    What would be the easiest way to permanently redirect (301) .net to .com?

    Also, I was getting great indexing in google with my rewritten urls. They were fine for a long time but now all of a sudden my old urls (i.e. querystrings and all) are being indexed and most of my good content is no longer shown. Could this be due to the .net pointing to the same directory possible flagging for duplicate content?

    Thanks for any input.

  2. #2
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    168 times
    Hello,

    please check this: [How to] Setup www.yourdomain.com or yourdomain.com (www vs. non-www) - With .htaccess 301 redirects
    Yes, that may be related to duplicate content issue.

  3. #3
    Member
    Real Name
    Jason
    Join Date
    Mar 2008
    Location
    Washington, DC
    Posts
    73
    Liked
    0 times
    Thanks,

    I tried the following:
    Code:
    #RewriteCond %{HTTP_HOST} !^www\.mysite\.com
    #RewriteRule (.*) http://www.mysite.com/$1 [L,R=301]
    #RewriteCond %{HTTP_HOST} !^www\.mysite\.net
    #RewriteRule (.*) http://www.mysite.com/$1 [L,R=301]
    Which ended up in an infinite loop when visiting .com (didn't even try the .net).

    Any other suggestions?

    Thanks again.

  4. #4
    Senior Member
    Real Name
    Joseph Ward
    Join Date
    Jun 2005
    Posts
    23,845
    Liked
    36 times
    Blog Entries
    9
    You only applied 1 version on the site you want to refer to the other.

  5. #5
    Member
    Real Name
    Jason
    Join Date
    Mar 2008
    Location
    Washington, DC
    Posts
    73
    Liked
    0 times
    Quote Originally Posted by Joe Ward View Post
    You only applied 1 version on the site you want to refer to the other.
    I'm sorry, I don't understand. Could you elaborate please?

  6. #6
    Senior Member
    Real Name
    Joseph Ward
    Join Date
    Jun 2005
    Posts
    23,845
    Liked
    36 times
    Blog Entries
    9
    Place this one only on the .net site.

    Code:
    #RewriteCond %{HTTP_HOST} !^www\.mysite\.com
    #RewriteRule (.*) http://www.mysite.com/$1 [L,R=301]

  7. #7
    Member
    Real Name
    Jason
    Join Date
    Mar 2008
    Location
    Washington, DC
    Posts
    73
    Liked
    0 times
    Quote Originally Posted by Joe Ward View Post
    Place this one only on the .net site.

    Code:
    #RewriteCond %{HTTP_HOST} !^www\.mysite\.com
    #RewriteRule (.*) http://www.mysite.com/$1 [L,R=301]
    I have the .net domain pointed to the same path as the .net, so they share the same .htaccess. Is there any way around this? My host charges to point the domain to a new folder, which is why I ask.

    Thanks

  8. #8
    Senior Member
    Real Name
    Joseph Ward
    Join Date
    Jun 2005
    Posts
    23,845
    Liked
    36 times
    Blog Entries
    9
    The above says "if you got here by something other than .com, then go to the .com version". So it should work even if the sites share the same .htaccess.

  9. #9
    Member
    Real Name
    Jason
    Join Date
    Mar 2008
    Location
    Washington, DC
    Posts
    73
    Liked
    0 times
    Quote Originally Posted by Joe Ward View Post
    The above says "if you got here by something other than .com, then go to the .com version". So it should work even if the sites share the same .htaccess.
    I'll be darned...that worked beautifully. Thanks for the clarification.

    Quote Originally Posted by Oleg Ignatiuk View Post
    Hello,

    please check this: [How to] Setup www.yourdomain.com or yourdomain.com (www vs. non-www) - With .htaccess 301 redirects
    Yes, that may be related to duplicate content issue.
    Thanks for pointing me in the right direction

  10. #10
    Senior Member
    Real Name
    Joseph Ward
    Join Date
    Jun 2005
    Posts
    23,845
    Liked
    36 times
    Blog Entries
    9
    Glad to hear you got it setup ok.

Similar Threads

  1. 301 Redirecting Domains
    By BamaStangGuy in forum General Discussion
    Replies: 61
    Last Post: 03-16-2008, 11:51 AM
  2. Redirecting the xxx.com to www.xxx.com
    By NeutralizeR in forum General Discussion
    Replies: 4
    Last Post: 11-25-2007, 05:07 PM
  3. Redirecting a Url
    By cathiejones in forum General Discussion
    Replies: 1
    Last Post: 07-27-2006, 05:41 PM
  4. Redirecting
    By emin in forum General Discussion
    Replies: 16
    Last Post: 12-31-2005, 04:30 AM

Posting Permissions

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