Opened 4 years ago
Closed 4 years ago
#52248 closed defect (bug) (duplicate)
Multisite new site default protocol
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 5.6 |
Component: | Networks and Sites | Keywords: | |
Focuses: | administration, multisite, rest-api | Cc: |
Description
Newly created sites in a multisite installation default to HTTP even though the main site is HTTPS.
Reproducible by doing the following:
- Installing WordPress, served by nginx;
- First (main) site initially set to use HTTP only
- Enable multisite (subdomain)
- Migrate everything (wp-config.php, database entries) to HTTPS only
- Create a new site
Expected behavior:
New sites should be created with HTTPS instead of HTTP.
Issues
When served by nginx, with 80 to 443 redirection (301 Moved permanently), page editor will not work, while dashboard will, on the newly created site. The redirection for the API will not work, reporting "offline" error when trying to save.
Workaround:
After the creation of the website:
- Manually change the site's URL to use HTTPS;
- Manually change all database entries containing
http://
intohttps://
with a plugin such as better search replace.
Notes
I could not find how to set WordPress' default multisite protocol for new websites. I would happily avoid installing new plugins for that only.
Change History (1)
Note: See
TracTickets for help on using
tickets.
Hi there, welcome back to WordPress Trac! Thanks for the report.
This has already been discussed in #27499. I don't think anything has really changed from that decision.
There is room for a filter to more easily allow https default, but we can continue that discussion on the other ticket.