SEO-friendly 301 redirect?

by krull
3 replies
  • WEB DESIGN
  • |
The deal is that I've got a private website and only the domain itself has backinks pointing to it, no pages since they're all private. I'd simply like to get the .com domain itself redirected to my new one so the new domain will get all of the homepage backlink juice. What would the the htaccess file look like for doing this?

As a side question, I see stuff about domain.com and www.domain.com htaccess redirects. My domain shows up the same regardless of what you type in, so I guess I want to get both the domain.com and without the www part redirected.
#301 #redirect #seofriendly
  • Profile picture of the author Freeman A
    [DELETED]
    {{ DiscussionBoard.errors[2053230].message }}
    • Profile picture of the author Freeman A
      [DELETED]
      {{ DiscussionBoard.errors[2053235].message }}
      • Profile picture of the author krull
        Will that work even if I don't have any links pointing to any subpages or directories? Basically, I want to redirect ANY person trying to access the old site to be directed to the new site, regardless of what they type in.

        For example

        oldsite.com or
        oldsite.com/directory
        oldsite.com/file.html

        etc should go to

        newsite.com - the homepage.
        {{ DiscussionBoard.errors[2053341].message }}
        • Profile picture of the author Freeman A
          [DELETED]
          {{ DiscussionBoard.errors[2053427].message }}
          • Profile picture of the author Freeman A
            [DELETED]
            {{ DiscussionBoard.errors[2053465].message }}
            • Profile picture of the author erbuc
              Yes, "poorman" is correct here. A poorly configured .htaccess file can harm your search engine rankings. Configured properly, you should be able to maintain your position.

              Here are some helpful links on proper configuration of the .htaccess file. I hope they help.

              Documentation: Apache HTTP Server - The Apache HTTP Server Project - Documentation on using and configuring an Apache web server. Basic information on the .htaccess file for the latest version of Apache can be found here. Apache Tutorial: .htaccess files - Apache HTTP Server

              Htaccess Tools - A very useful resource to help in creating a .htaccess file for a websites specific needs.
              {{ DiscussionBoard.errors[2053573].message }}
              • Profile picture of the author LynxSI
                Just out of curiosity, why the domain change if the content is the same? Was it a company name change?

                Older domains rank well and I would assume have many bookmarks/backlinks from users. I guess I just don't get why you'd want a private site to preserve its SEO ranking?

                In the past when I've moved sites accross domains, I found individual 301s for each product/topic page was best - but that's for an open/public site. You seem to be well advised already for your wildcard/root only redirect.
                Signature

                Ben Swayne
                Lynx System Integrators Ltd.
                Ben Swayne's Blog | Barcode Scanners and Label Printers

                {{ DiscussionBoard.errors[2055781].message }}

Trending Topics