I’m working on WP site which is currently having this kind of testing instace url: http://someipaddress/~directory/directory/ and then “wp-admin”
now If I want to link of any page in top navigation through wp-admin–> Appearance –> Menu
I need to use “/~directory/directory/” in URL field(THIS IS WHAT THE PROBLEM IS)
Now I’ve to move it on production instance, and it has different kind of url like : “http://mywpsite.com/“, so again I need to change this URL over there.
Does anyone has any idea how to tackle this?
Check out the Moving WordPress page of the Codex, specifically the “Changing Your Domain Name and URLs” section. In essence, the easiest way is to update the database directly (back it up first, of course), using something like the Search and Replace script for WordPress, which’ll handle things like serialized values in the database for you.
What about changing url structure by a query