 [ ← blog / wordpress ](/) Apr 26, 2013  ·  \#wordpress  ·  1 min read 

# Flush WordPress rewrite rules through phpMyAdmin



 I migrate a lot of WordPress installs from a localhost to the beta server and then to production. It's easy enough to update the URLs in _options and guids in _posts, but the one thing that irritated the hell out of me was the rewrite rules. WordPress caches the rewrite rules within _options; if you've migrated a WordPress you'll notice links are broken even though .htaccess is fine. Simply find "rewrite_rules" in _options table and clear out it's value - badda bing. You could just re-save via Permalinks, but this is just as easy if you're already in there.![Screen Shot 2013-04-26 at 11.13.15 PM](http://glamanate.com/wp-content/uploads/2013/04/Screen-Shot-2013-04-26-at-11.13.15-PM.png) 

  ![](/themes/custom/mglaman/images/headshot.webp)Thanks for reading

I write about Drupal, PHP, and the quiet infrastructure behind large sites — caching, config, and testing. New posts land every week or two.

 [Subscribe via RSS →](/rss.xml) [About me →](/about-me) 

 



 

  [← Older

XAMPP MySQL Command Line

 ](/blog/xampp-mysql-command-line) [Newer →

CSS Facebook Chat Head

 ](/blog/css-facebook-chat-head)