Opened 10 years ago
Last modified 5 years ago
#29727 new enhancement
Porting self-hosted Wordpress to HTTPS: mixed content
Reported by: | jsha | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 4.0 |
Component: | Media | Keywords: | has-patch, needs-testing, https |
Focuses: | Cc: |
Description
When moving a self-hosted Wordpress blog from HTTP to HTTPS (by editing the site URL at /wp-admin/options-general.php), I run into trouble because image links embedded in existing posts still point to HTTP, even though those images are hosted by my Wordpress blog and now support HTTPS.
It would be great if Wordpress could automatically rewrite images in existing posts when site URL is changed to HTTPS.
Attachments (2)
Change History (11)
#7
@
9 years ago
I've uploaded two different patches:
- 29727.diff is a nearly exact copy of @wonderboymusic's patch on #28521. It replaces local non-HTTPS URLs using a filter.
- 29727.2.diff sends an Upgrade Insecure Requests HTTP header when the page is requested through HTTPS. This was suggested in a comment on make/core.
Note: See
TracTickets for help on using
tickets.
Related #15928