[wp-trac] [WordPress Trac] #52799: Easy HTTPS Redirects in WordPress Dashboard
WordPress Trac
noreply at wordpress.org
Fri Mar 12 21:58:54 UTC 2021
#52799: Easy HTTPS Redirects in WordPress Dashboard
------------------------------+-----------------------------
Reporter: sarmstead | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Site Health | Version:
Severity: normal | Keywords:
Focuses: coding-standards |
------------------------------+-----------------------------
In 5.7 we introduced a way to automatically update database URLs in the
Tools > Site Health section. Great work everybody!
**In addition to updating URLs, I propose that 5.8 adds a button to force
HTTPS redirects in the .htaccess file at the site root.** This feature
would add the following code to the # BEGIN WordPress / # END WordPress
block in the .htaccess file:
{{{
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
}}}
**Why do this?** Adding this enhancement can make securing a WordPress
site much easier for users who don't want to fuss with code to keep their
site from returning pages with http://.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52799>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list