HTTPS check does not work on 1&1 servers in canonical.php.
|Reported by:||d4manek||Owned by:||nacin|
In canonical.php, the function redirect_canonical() includes the following line to detect and build an HTTPS url:
On 1and1.com, this logic does not work because $_SERVERHTTPS? is set to '1' instead of 'on'. It would be better to use the built-in WordPress function is_ssl() in this function, which appears to correctly handle all hosting sites. The fix would look like this:
Change History (8)
6 years ago
- Component changed from General to Canonical
- Milestone changed from Unassigned to 3.0