Posted on 14th January 2010No Responses
301 redirect Wordpress



Sometime Wordpress can be very annoying and mess up all you SEO efforts. For example it can include a /tag/within your URL. So the URL you get is

www.yoursite.com/tag/keyword

What you actually wanted was

www.yoursite.com/keyword

 

Because this would be better for SEO purposes and the Search Engines like Google would prefer this format and rank you higher.

Another problem with this is that the same page is reachable through both urls above, so there is a chance that the search engines might get the wrong idea and think that you have duplicate content on your site ! This is simply not good for your site as far as search engine traffic is concerned.

 




The solution to fix this problem is to use “Redirection” [http://urbangiraffe.com/plugins/redirection/] which is a WordPress plugin to manage 301 redirections. With a 301 redirect the search engine bots will be forwarded to the correct format of the URL so you can avoid any duplicate content issues as well.

 

OK so this is how I fixed it ….

 

Redirect Tag pages
==================
/tag/(.*) => /$1

This will match any URL that starts with /tag/, and will redirect it to the same URL but without /tag/. For example,

http://onlinembadegreeprogram.co.uk/tag/university-of-maryland-university-college-umuc-business-administration-mba-degree/

 

will be redirected to a URL without the /tag/

http://onlinembadegreeprogram.co.uk/university-of-maryland-university-college-umuc-business-administration-mba-degree/




Comments
Leave a Response
XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>