How can I make a WordPress database portable and url independent?

I will answer question 2, be aware that some values in the database are stored in serialised arrays. For example, if the length of your URL string changes and it’s in a serialised array, then you need to update the index for it.

You can use this PHP script to update all the values in serialised arrays, or run it from the command line in your own script

Leave a Comment