How replace image URL after migrating from http to https in WordPress

Ask Any Questions Answer’s are WaitingCategory: WordPressHow replace image URL after migrating from http to https in WordPress
SolutionsHint Staff asked 10 months ago

How replace image URL after migrating from http to https in WordPress.

1 Answers
SolutionsHint Staff answered 10 months ago
Step 1: UPDATE wp_posts SET `post_content` = REPLACE (`post_content`, 'src="http://solutionshint.com', 'src="https://www.solutionshint.com');

Step 2: UPDATE wp_posts SET `guid` = REPLACE (`guid`, 'http://solutionshint.com', 'https://www.solutionshint.com') WHERE post_type = 'attachment';