Robots, Wordpress, and Permalink Redirects

So I recently changed the permalink structure of my website.

The purpose of this is so that I get prettier looking links

www.vesco.us/?p=203

vs

http://www.vesco.us/2009/03/technology/scanning-textbooks-and-digitizing-your-library-efficiently.html

It also helps people find my pages with google since google likes the latter more.

However, the problem with doing this is that all your old links become obsolete. A wonderful wordpress plugin resolves this, http://scott.yang.id.au/code/permalink-redirect/

However, I noticed after I installed this plugin that my robot.txt file would also redirect back to wordpress causing a “this page cannot be found” to be displayed.

After several hours, I found this solution: place a redirect in your .htaccess file, something like this:

redirect 301 robot.txt http://www.example.com/robot.txt

This has the added benefit of also allowing you to use a real robot.txt file instead of Wordpress’ virtual one that’s managed in from the privacy settings.

  • Share/Bookmark

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*
To prove you're a person (not a spam script), type the security word shown in the picture.
Anti-spam image