Opened 13 years ago
#187 new enhancement
Wordpress doesn't play nice with HTTPS
Reported by: | ezyang | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | autoinstallers | Keywords: | |
Cc: |
Description
In an ideal world, if I configure my Wordpress to be HTTPS only (by modifying siteurl and home), I should be able to access the corresponding http:// URL and be redirected to the secure page. Unfortunately, Wordpress seems to get confused by this and does the wrong redirect.
http://wordpress.org/support/topic/301-redirect-from-http-to-https
suggests the following solution:
RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule ^(.*) https://%{SERVER_NAME}/$1 [R,L]
which doesn't quite work because the port is wrong if we're doing cert-auth and mumble rewrite base is necessary. It would be nice if we could find a general solution or make a patch for Wordpress that makes this magically work.
See RT 1367790 for an example of someone getting bitten by this.