[wp-trac] [WordPress Trac] #40336: Links to media files not updating with SSL activation and/or preferred domain change
WordPress Trac
noreply at wordpress.org
Wed Apr 5 21:53:53 UTC 2017
#40336: Links to media files not updating with SSL activation and/or preferred
domain change
--------------------------+------------------------------
Reporter: only1andrewh | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: 4.7.3
Severity: normal | Resolution:
Keywords: close | Focuses:
--------------------------+------------------------------
Comment (by bahia0019):
Replying to [ticket:40336 only1andrewh]:
> In my case in particular, I have set https rewrites in .htaccess so it
only loads the https version, and have setup in the main settings that the
website&wordpress address is the non-www https version.
>
> It was truly a surprise to me to see that the links aren't relative but
absolute.
Setting up SSL is actually pretty easy these days. And you hit one of the
biggest things that people miss (the htaccess force rewrite rule). That's
really good news!
The two things you missed are:
1. To change the Settings to HTTPS. This is important so WordPress knows
where to send people without even hitting the 301.
2. To do a database rewrite (like others have pointed out) make sure you
use your full domain or you'll change links you have in your site that
point to other sites. Ex: http://yourdomain.com to https://yourdomain.com.
(NOT http:// to https://).
This isn't really a bug. Just configurations that need to be set in a
certain way.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40336#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list