Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi

    You can change both urls manually in the wp-config.php file.

    define('WP_HOME','https://example.com');
    define('WP_SITEURL','https://example.com');

    (Please use your domain name instead https://example.com)

    Please check it and let me know !

    • This reply was modified 7 years, 5 months ago by sumithsuku11.

    Hi @kmikz42,

    Do the search and replace using this tool: https://interconnectit.com/products/search-and-replace-for-wordpress-databases/ into the database.

    I hope this will resolve your issue.

    Thread Starter kmikz42

    (@kmikz42)

    Thx sumithsuku11

    I trying this It’s working but only for home page all links are dead (404)

    I try the tool of chetansatasiya, maybe

    Thread Starter kmikz42

    (@kmikz42)

    Thanks chetansatasiya

    Nice script but nothing wrong in PHP database

    it’somewhere in WP

    I think I have no choice Re-installing WP ; (

    Hey actually you want to replace all old urls(https://67.199.114.44/wp/) references into new dmain(https://www.sjsthailand.com) right ?

    If you move the site to another domain or making site to live you need to change both home and site urls to new domain as well as you need to change all references to new url(including image paths,attachment paths etc..).

    If you willing to run the query via phpmyadmin from cpanel. you can run the below queries.

    UPDATE wp_options SET option_value = replace(option_value, 'https://www.oldurl', 'https://www.newurl') WHERE option_name = 'home' OR option_name = 'siteurl';
    
    UPDATE wp_posts SET guid = replace(guid, 'https://www.oldurl','https://www.newurl');
    
    UPDATE wp_posts SET post_content = replace(post_content, 'https://www.oldurl', 'https://www.newurl');
    
    UPDATE wp_postmeta SET meta_value = replace(meta_value,'https://www.oldurl','https://www.newurl');

    (please make a backup before do anything).

    Regards
    Sumith

    Thread Starter kmikz42

    (@kmikz42)

    Thanks all for your help

    Finally I re-install a backup

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Impossible to login after URL change in WP control Panel’ is closed to new replies.