Free Checking for Bloggers - Sign up in 5 Minutes!
Powered by MaxBlogPress  

 

Blogging Mistake: Not Using 301 Redirects | JTPRATT's Blogging Mistakes
JTPratt's Blogging Mistakes





Home » Blogging Mistake: Not Using 301 Redirects


 
 
 

Posted in:

blogging category image blogging-mistakes category image wordpress category image wordpress-modules category image wordpress-seo category image
1,872 views


If you are not using 301 Redirects you are making a blogging mistake. 301 Redirects are easy to setup, save your google pagerank and link love, and save your visitors from a nasty “Error 404 - Not Found” page. What is a 301 redirect? It’s a single line you add to you “.htaccess” file (more on this later) that says ‘anyone that visits that URL - send them to that URL instead’. The redirect can happen witin your site, you can redirect to an external site - it’s basically from any URL to any URL.

Here are some scenarios where you would use a 301 redirect:

  1. You’ve changed your permalink structure
  2. You’ve accidentally deleted a post and need to recreate it
  3. You wish to change the post slug (url) to make it more seo friendly
  4. You have a bunch of 404’s for pages that don’t (and maybe never) existed
  5. You recently moved from one blogging platform to another (drupal, blogger, movable type, etc., to wordpress)
  6. You changed, recreated, or renamed your categories

If you’re using Wordpress, you can try and install a module to add redirects directly from your admin panel. I personally have not had luck with this plugin, but some have - you’re welcome to try the Objection Redirection Wordpress 301 Redirect Plugin and see if it works for you.

If it doesn’t (or if you’re not using Wordpress), you’ll need to edit your .htaccess file yourself. If using Wordpress, you should already have a file called “.htaccess” in the root of your web site. If not, you’ll need to create it. Open up any text editor (notepad) on your PC. You’ll need an FTP account and FTP access to your web site to do this. If using Wordpress, download your .htaccess file. It should already look something like this:


<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

If you’re not using Wordpress, download your .htaccess file and open it (or create a new one if you don’t have one already). Basically - you’re going to add one line for each redirect. It’s very simple:

Redirect 301 “/blog” http://www.yourwebsite.com
Redirect 301 “/page.html” http://www.yourwebsite.com/page.html
Redirect 301 “/subdir/oldpage.html” http://www.yourwebsite.com/subdir
Redirect 301 “/blog” http://www.anotherwebsite.com

I tried several ways to do this, and this is the one that works for me every time. I’m hosted on a Linux server running Apache. Every line starts with “Redirect 301 “. Then (always in quotes) is the path on your server to redirect. I always start it with a slash (that means from the root of your site). There is no need to write out your full domain name in the first part. You can redirect a directory, a page, a page in a sub-directory, etc. Then just write the full URL to the page you are redirecting to. You can redirect to a page in your site, a sub-directory, or a page in a sub-directory. You can even redirect from your site to another (external) web site.

That’s it! Save you file and FTP back to the root of your web site and you’re done!

The reason I had to setup some 301 Redirects is because I migrated one of my web sites from Drupal to Wordpress. With the date based permalink structure in Wordpress, the URL’s of all of my important pages with pagerank was screwed up. They say if you redirect a page that had google page rank (to a new page) the (old) page rank will be passed on to the new page. I can’t verify this myself, because my redirects haven’t been in place long enough to tell. I will update after they’ve been online awhile.


4 Responses to “Blogging Mistake: Not Using 301 Redirects”

  1. How to Setup 301 Redirects at search-optimization-school.com Has the following to say...

    [...] On my personal blogging site JTPRATT’s Blogging Mistakes, I just wrote a post about setting up 301 redirects. If you don’t already know how to setup 301 directs, what they are, or how to use them - you [...]

  2. JP Has the following to say...

    Hello, I found your site while trying to find some advice on how to do 301 redirects. I just moved my blog from Blogger to Wordpress and need to forward the PR and links to the new blog.

    I tried your redirects but it actually works without the quotes.

    i.e.

    Redirect 301 /webpage.html http://www.yourwebsite.com/anotherpage.html

    Maybe it’s a different version of Apache or something?

    Anyway thanks a bunch!
    JP =;;
    JPs last blog post..Wordpress move almost complete!

  3. Jimmy Has the following to say...

    Just to follow up the last comment and maybe help people running into this page… 301 Redirects do not take into account people who were publishing on a blogspot address, so http://yoursite.blogspot.com. If you unfortunately made that mistake and now want to move to a Wordpress solution, I’ve written up a guide that takes into account all the most recent information. While it doesn’t use 301 redirects (that’s impossible on a blogger hosted solution), it does the job pretty well and NOINDEX’s your blog so that you don’t get nailed for duplicated content.

    Successfully Forwarding Blogger to Wordpress

  4. ankit Has the following to say...

    An informative Post,though i have a doubt
    i am using blogger.com for my blog and yet to host it on my own domain.Is it possible to do a 301 redirect in my blog
    any help greatly appreciated

    ankits last blog post..SIP-Systamatic Investment Plan (Read Safe Investment Plan):-)

Question or Comment?? Spill it Now...

Jumping for Joy over comments!

We Reward Comments!


We dofollow links, and get your latest blog post as a byline under every new comment from the "CommentLuv" plugin! Top commenters for every month are listed on every page of this site in a sidebar widget linked back to your URL! We would like to reward you for becoming part of our community! Your comment is valuable not only to us, but also all the other readers of this blog!
 

 


Click to add smilies to your post! = =[] ^=( =(( =(| =)r =|8 =0 =)~ =00 =( =;; =)] =;;;