How to add location url in WordPress(Appearance –> Menu –> URL)?

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

Read More

I need to use “/~directory/directory/” in URL field(THIS IS WHAT THE PROBLEM IS)

/~directory/directory/

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?

Related posts

Leave a Reply

2 comments

  1. What about changing url structure by a query

    UPDATE wp_options SET option_value = replace(option_value, 'http://olddomain.com', 'http://newdomain.com') WHERE option_name = 'home' OR option_name = 'siteurl';
    
    UPDATE wp_posts SET guid = replace(guid, 'http://olddomain.com','http://newdomain.com');
    
    UPDATE wp_posts SET post_content = replace(post_content, 'http://olddomain.com', 'http://newdomain.com');
    
    UPDATE wp_postmeta SET meta_value = replace(meta_value, 'http://olddomain.com', 'http://newdomain.com');