PHP script to replace site url in Wordpress database dump, even with WPML
less than 1 minute read
Wordpress has the nice habit of storing every URL with its full path in the database.
You sure can hardcode the HOME_URL and SITE_URL in the wp-config.php but it won't change the references to your medias, serialized strings, encoded HTML, etc.
The only solution is really just to edit the database. At least, I haven't found a better solution.
Usage
Or
Will output all remaining mentions of http://old-domain.com to stderr
In Symfony Cookbook How to Override any Part of a Bundle, it is written that you cannot override entity mappings and only attributes can be modified in super...
Wikipedia has short and clear article on the matter, cache stampede can be quite deadly, especially when you are rebooting your server, clearing your cache o...
Using app/console doctrine:migrations:migrate is really easy and trouble free for everybody, but those tables are often empty and they need some data to be o...
If you upgrade to MySQL 5.7, you may encounter bugs with legacy software. Wordpress, which I also consider some kind of legacy software, does not handle this...