#1
  1. No Profile Picture
    Registered User
    SEO Chat Explorer (0 - 99 posts)

    Join Date
    Oct 2010
    Posts
    3
    Rep Power
    0

    Domain Redirection (Best Practices)?


    Imagine that our primary domain name is “widgets.com”. Imagine then that we also own “steelwidgets.com” and “plasticwidgets.com”, and point them both through “A” records back to the same IP address as “widgets.com”.

    This is detrimental though, in that searching Google for “widgets”, results from all three domain names show up, likely hurting our SEO.

    What is the best possible solution to redirect these to “widgets.com”?

    Currently, I have 301 redirects set up on the “widgets.com” home page, but if the person visits “plasticwidgets.com/company.aspx” they are not redirected to “widgets.com/company.aspx”. Sure, I could set up 301 redirects on every single page of the web site but this is, of course, not ideal. I have explored using CNAME records to accomplish this, but I cannot seem to add a “blank” CNAME record, only a “WWW” CNAME record. This works if someone visits “www.plasticwidgets.com”, but not if they visit “plasticwidgets.com” without the WWW.

    I’m no expert, so I’d welcome any suggestions.

    Thanks,
    Matt
  2. #2
  3. SEO Professional
    SEO Chat Good Citizen (1000 - 1499 posts)

    Join Date
    Jul 2003
    Posts
    1,221
    Rep Power
    155
    You could do the 301 redirect at a site wide level and that way the redirected domains would stay out of the SERPs.
    Get Your FREE SEO Guide on how I managed to grab the #1 position on Google
    for hundreds of extremely competitive keywords...

    ==> Get FREE Google Ranking Guide Here!
  4. #3
  5. No Profile Picture
    Registered User
    SEO Chat Explorer (0 - 99 posts)

    Join Date
    Oct 2010
    Posts
    3
    Rep Power
    0
    UPDATE: For anyone searching the forum, here is a piece of code (Classic ASP) I wrote quick that works great. This way, a user hitting "plasticwidgets.com/company.asp" will be properly redirected with a 301 to "widgets.com/company.asp"

    So in IIS, I created a new web site that "plasticwidgets.com" and "steelwidgets.com" point to. I set the 404 page to "default.asp", and put the code below in "default.asp"

    Code:
    <% 
    var_redirect = request.servervariables("query_string")
    var_redirect = replace(var_redirect, "404;http://", "")
    var_redirect = replace(var_redirect, ":80/", "")
    var_redirect = replace(var_redirect, request.servervariables("server_name"), "")
    
    response.status="301 Moved Permanently" 
    response.addheader "Location", "[http://]www.widgets.com/" & var_redirect
    %>
    'Note: remove the brackets in the "Location" above. The forum doesn't allow newbies to post URLs, so I had to do that to break the form.

Similar Threads

  1. Domain name infringement email from google
    By notanotherseo in forum Search Engine Optimization
    Replies: 27
    Last Post: Jun 14th, 2007, 01:37 PM
  2. Redirection bad for domain?
    By jacobkell in forum Google Optimization
    Replies: 2
    Last Post: Feb 13th, 2007, 02:33 PM
  3. Bulk domain redirection
    By Sopra Tutt1 in forum Google Optimization
    Replies: 3
    Last Post: Dec 14th, 2006, 02:31 PM
  4. Need help with Permanent Domain Redirection
    By jeeseo in forum Search Engine Optimization
    Replies: 1
    Last Post: Jul 13th, 2006, 06:42 AM
  5. Domain after 301 redirection!
    By SEO-2005 in forum Google Optimization
    Replies: 4
    Last Post: Dec 16th, 2005, 04:26 AM

IMN logo majestic logo threadwatch logo seochat tools logo