WordPress upgrades can introduce new 404s

I don't know how, when, or why, but it on a recent WordPress upgrade for one of our sites, we had noted a good number of new 404s.

It appears that some of the "base URLs" had changed at some point along the line.

Luckily, we have the Apache RewriteRule on our side. Here's a few rules that helped reduce 404s and direct search engines and users appropriately:

RewriteRule ^/blog/categories/(.*)    /blog/category/$1 [L,R=301]
RewriteRule ^/blog/(rss|RSS)        /blog/feed/rss [L,R=301]

RewriteCond %{QUERY_STRING}         getTags=(.*)
RewriteRule ^/blog/search            /blog/tag/%1?            [R=301,L]

Why follow me on Twitter?

  • I tweet about new technologies, services or libraries I find interesting
  • Yeah, sometimes I'll post a pet-peeve or rant about something trivial
  • If I discover something that made my web development life easier, I share it
  • I'll shout out any handy tip that I think might be useful to other devs


Tagged .

Updated: 2012-05-11

Phil LaNasa follow us in feedly