Viewing 2 replies - 1 through 2 (of 2 total)
  • You could set a redirect in your .htaccess. But that would add an extra request to each image, this is too slow.

    Or go into your MySQL administration tool (console, Adminer or phpMyAdmin) and change the field guid. In the following example, the table prefix in wp-config.php is wp_. Adjust it to your actual value.

    UPDATE wp_posts
    SET guid = replace( guid, 'https://', 'https://www.')
    WHERE post_type = 'attachment'
    AND INSTR( guid, 'https://www.') = 0
    LIMIT 50

    Unfortunately, this forum eats the backticks (`). ??

    Here is the SQL without any changes: https://pastebin.com/3iSdPUaT

    Thread Starter Greg0497

    (@greg0497)

    Thanks I’ve been able to fix the issue using https://codepen.io/EightArmsHQ/full/nzEjI
    (changed domain.com by https://www.domain.com)

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Change image path to add "www" after "https://"’ is closed to new replies.