get_template_directory_uri() generates wrong path

Do your URL change up in phpMyAdmin with SQL language:

# Change website url
UPDATE wp_options
SET option_value = replace(option_value, 'http://www.old-site.com','http://www.new-site.com') WHERE option_name="home" OR option_name="siteurl";

# Change GUID URL
UPDATE wp_posts SET guid = REPLACE (guid, 'http://www.old-site.com','http://www.new-site.com');

# Change url of medias, post, page, etc.
UPDATE wp_posts SET post_content = REPLACE (post_content, 'http://www.old-site.com','http://www.new-site.com');

# Change meta data url
UPDATE wp_postmeta SET meta_value = REPLACE (meta_value, 'http://www.old-site.com','http://www.new-site.com');

error code: 523