SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: Do I really need a 301 redirect?

  1. #1
    SitePoint Member tekkie's Avatar
    Join Date
    Mar 2001
    Location
    Portland, OR
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Do I really need a 301 redirect?

    I have what is probably a very simple problem, I'm just having trouble wrapping my head around it because it's so simple.

    I have a website which talks about 2 items. I've just bought another domain that refers to one of the items and want it to point to the part of my website that refers to that item. Since I don't have a second website - just want to point the new domain to an existing domain, do I even need a redirect? I've pointed a domain name to an existing web site before (not a 301 redirect) but not to an internal page of an existing web site.

    Example: www.dogcatsite.com is the existing site. Part of it is devoted to dogs, i.e. www.dogcatsite.com/dogs and part of it is devoted to cats, i.e. www.dogcatsite.com/cats . I just bought the domain name www.dogheaven.com. When someone types in www.dogheaven.com, I want them to go to www.dogcatsite.com/dogs .

    What's the best way to do this without getting dinged for duplicate content in the search engines?

    Thanks.
    Tekkie

  2. #2
    Certified Ethical Hacker silver trophybronze trophy dklynn's Avatar
    Join Date
    Feb 2002
    Location
    Auckland
    Posts
    14,315
    Mentioned
    15 Post(s)
    Tagged
    2 Thread(s)
    tekkie,

    First, you need to point your new domain to your old website.

    Then PARK or ADDON your second domain

    If PARKED, it will be parked on the DocumentRoot so you'll need to Redirect and have it point to the dog directory of the main domain (PARK will automatically use your main's DocumentRoot) and use mod_rewrite to look at the {HTTP_HOST} variable (for the second domain) and then redirect the {REQUEST_URI} to the old domain and dog directory.

    If ADDON, it will be a subdomain of the main domain which can be pointed at the dog directory as its DocumentRoot. Just do that and the problem is solved for you.

    Regards,

    DK
    David K. Lynn - Data Koncepts is a long-time WebHostingBuzz (US/UK)
    Client and (unpaid) WHB Ambassador
    Updated mod_rewrite Tutorial Article (setup, config, test & write
    mod_rewrite regex w/sample code) and Code Generator

Tags for this Thread

Bookmarks

Posting Permissions

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