• Hi there – due to a partnership change, I was forced to change the name of my company and then had to change the URL of the website. I used the same site so I would not have to upload all the files again. However, when I post the URL link to Facebook, the new site comes up but it still says the old name. The new name is https://www.dinelbc.com, but the old name Eat LBC still shows as the name of the website on the post. I have combed through the site back and forth a hundred times looking for where Eat LBC might still be in a form somewhere and cannot find it! Can anyone out there tell me where to look? Thanks so much!

Viewing 1 replies (of 1 total)
  • Hi there, you probably need to update your MySQL database with your new URL.

    Try running the below commands (replacing the old and new URLs with your old and new URLs). Also just make sure you do a backup of your DB first.

    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');
Viewing 1 replies (of 1 total)
  • The topic ‘Changing URL and keeping files – old name still shows up with posting link’ is closed to new replies.