Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
wordpress https updates
.htaccess file will need the following:
RewriteEngine On
RewriteCond %{HTTP:X-Forwarded-SSL} !on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
run this sql:
UPDATE wp_posts SET `post_content` = REPLACE (`post_content`, 'src="http://digitalbureau.com', 'src="https://digitalbureau.com');
UPDATE digitalbureau_com.wp_posts SET `guid` = REPLACE (`guid`, 'http://digitalbureau.com', 'https://digitalbureau.com') WHERE post_type = 'attachment';
src:
https://premium.wpmudev.org/blog/replacing-image-links/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment