9 replies
  • SEO
  • |
Hi all,

Could someone please provide me with the code to implement a 301 redirect, used to prevent duplicate content, on an Apache Web server.


Thanks,

Terry
#301 #redirects
  • Profile picture of the author John Williamson
    You should be able to do a redirect through your hosting platform with a few simple clicks.
    {{ DiscussionBoard.errors[3401013].message }}
  • Profile picture of the author yukon
    Banned
    Why not setup correct canonical tags on every page?

    That should deal with the seo side of duplicate pages.
    {{ DiscussionBoard.errors[3401082].message }}
    • Profile picture of the author SFIMike
      Can someone help me with a question on 301s? I posted in a thread but nobody seems to reply, and multiple searches really give a myriad of answers.

      If I 301 redirect a site to point to another one(for simplicity), can i still use SEO on the redirected site to keep it on top of rankings? And otherwise what are its effects(the 301) on being crawled and ranked?
      {{ DiscussionBoard.errors[3401525].message }}
  • Profile picture of the author JSProjects
    You can usually do this pretty easily via your hosting control panel.
    {{ DiscussionBoard.errors[3401528].message }}
  • Profile picture of the author Watch Store
    SFI Mike- it may take time for google to update all the link juice but it should work eventually as that is the idea of a 301 re-direct
    {{ DiscussionBoard.errors[3401796].message }}
    • Profile picture of the author SFIMike
      Originally Posted by Watch Store View Post

      SFI Mike- it may take time for google to update all the link juice but it should work eventually as that is the idea of a 301 re-direct

      Thanks for the help, its much appreciated. What kind of time frame should I expect with a 301 to re-reach its rank? Any negatives to doing the 301 now as opposed to later?
      {{ DiscussionBoard.errors[3408037].message }}
  • Profile picture of the author osho3
    You Can redirect in your hosting panel or through .htaccess file on apache server..
    or

    Put the code on the web-page to avoid duplicate content and webpage, solve the canonical issue and set the instructions for search engine spider..

    <link rel=”canonical” href=”http://www.yourdomain.com/yourpage” />
    {{ DiscussionBoard.errors[3401819].message }}
  • Profile picture of the author pc101seo
    If you need to redirect http://mysite.com to
    http://www.mysite.com and you've got mod_rewrite enabled on
    your server you can put this in your .htaccess file:

    Options +FollowSymLinks
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^example\.com
    RewriteRule ^(.*)$ http://www.example.com/$1 [R=permanent,L]

    or this:

    Options +FollowSymLinks
    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^domain\.com$ [NC]
    RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L]

    Tip: Use your full URL (ie http://www.domain.com) when
    obtaining incoming links to your site. Also use your full
    URL for the internal linking of your site.
    {{ DiscussionBoard.errors[3402480].message }}
  • Profile picture of the author exhibittrader
    301 redirect is a issue in which is remove by htaccess code or use canonical meta tag each page of your website.
    {{ DiscussionBoard.errors[3409663].message }}

Trending Topics