Skip to content
This repository
Newer
Older
100644 208 lines (192 sloc) 14.161 kb
10685d91 »
2011-12-14 Version 2.0.3
1 === WordPress HTTPS (SSL) ===
2 Contributors: Mvied
3 Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=N9NFVADLVUR7A
4 Tags: security, encryption, ssl, shared ssl, private ssl, public ssl, private ssl, http, https
87ef852d »
2012-04-09 Updated to version 3.0
5 Requires at least: 2.9.0
94ed7833 »
2012-04-15 Updated tested version to 3.4.
6 Tested up to: 3.4
6333d192 »
2012-04-09 Removed extra html and body tags from proxy_check.
7 Stable tag: 3.0
10685d91 »
2011-12-14 Version 2.0.3
8
9 WordPress HTTPS is intended to be an all-in-one solution to using SSL on WordPress sites.
10
11 == Description ==
12 <ul>
13 <li>Supports Shared and Private SSL.</li>
14 <li>Helps reduce or completely fix partially encrypted / mixed content errors.</li>
15 <li>Force SSL on a per-page basis.</li>
16 <li>Force SSL in admin panel.</li>
17 </ul>
18
19 If you're having partially encrypted/mixed content errors or other problems, please read the <a href="http://wordpress.org/extend/plugins/wordpress-https/faq/">FAQ</a>. If you're still having trouble, please <a href="http://wordpress.org/tags/wordpress-https#postform">start a support topic</a> and I will do my best to assist you.
20
21 == Installation ==
22 1. Upload the `wordpress-https` folder to the `/wp-content/plugins/` directory.
23 1. Activate the plugin through the 'Plugins' menu in WordPress.
24
25 == Frequently Asked Questions ==
26 = How do I make my whole website secure? =
27 To make your entire website secure, you simply need to change your home url and site url to use HTTPS instead of HTTP. Please read <a href="http://codex.wordpress.org/Changing_The_Site_URL" target="_blank">how to change the site url</a>.
28
29 = How do I make only certain pages secure? =
30 In the Publish box on the add/edit post screen, a checkbox for 'Force SSL' has been added to make this process easy. See Screenshots if you're having a hard time finding it.
31
32 = I changed my SSL Host and now I can't get into my admin panel! =
33 Go to your wp-config.php file and add this line. Hit any page on your site, and then remove it.
34 `define('WPHTTPS_RESET', true);`
35
36 = I'm getting 404 errors on all of my pages. Why? =
37 If you're using a public/shared SSL, try disabling your custom permalink structure. Some public/shared SSL's have issues with WordPress' permalinks because of the way they are configured.
38
39 = How do I fix partially encrypted/mixed content errors? =
40 To identify what is causing your page(s) to be insecure, please follow the instructions below.
41 <ol>
42 <li>Download <a href="http://www.google.com/chrome" target="_blank">Google Chrome</a>.</li>
43 <li>Open the page you're having trouble with in Google Chrome.</li>
44 <li>Open the Developer Tools. <a href="http://code.google.com/chrome/devtools/docs/overview.html#access" target="_blank">How to access the Developer Tools.</a></li>
45 <li>Click on the Console tab.</li>
46 </ol>
47 For each item that is making your page partially encrypted, you should see an entry in the console similar to "The page at https://www.example.com/ displayed insecure content from http://www.example.com/." Note that the URL that is loading insecure content is HTTP and not HTTPS.
48
49 Most insecure content warnings can generally be resolved by changing absolute references to elements, or removing the insecure elements from the page completely. Although WordPress HTTPS does its best to fix all insecure content, there are a few cases that are impossible to fix.
50 <ul>
51 <li>Elements loaded via JavaScript that are hard-coded to HTTP. Usually this can be fixed by altering the JavaScript calling these elements.</li>
52 <li>External elements that can not be delivered over HTTPS. These elements will have to be removed from the page, or hosted locally so that they can be loaded over HTTPS.</li>
53 <li>YouTube videos - YouTube does not allow videos to be streamed over HTTPS. YouTube videos will have to be removed from secure pages.</li>
54 <li>Google Maps - Loading Google maps over HTTPS requires a Google Maps API Premiere account. (<a href="http://code.google.com/apis/maps/faq.html#ssl" target="_blank">source</a>)</li>
55 </ul>
56
57 = Is there a hook or filter to force pages to be secure? =
58
59 Yes! Here is an example of how to use the 'force_ssl' hook to force a page to be secure.
60 `function custom_force_ssl( $force_ssl, $post_id ) {
61 if ( $post_id == 5 ) {
62 return true
63 }
64 return $force_ssl;
65 }
66
67 add_filter('force_ssl' , 'custom_force_ssl', 10, 2);`
68
69 == Screenshots ==
70 1. WordPress HTTPS Settings screen
71 2. Force SSL checkbox added to add/edit posts screen
72
73 == Changelog ==
87ef852d »
2012-04-09 Updated to version 3.0
74 = 3.0 =
75 * The plugin has been completely re-written.
76 * Redirect loops should no longer be an issue.
77 * Bugs are likely to occur.
e30d8fdd »
2011-12-15 Updated with 2.0.4 change log.
78 = 2.0.4 =
79 * Bug Fix - Users using Shared SSL should no longer have broken URL's and redirects.
87ef852d »
2012-04-09 Updated to version 3.0
80 * Bug Fix - Pages should correctly be identified as HTTPS if PHP returns an IP address for SERVER_ADDR in $_SERVER.
e30d8fdd »
2011-12-15 Updated with 2.0.4 change log.
81 * Bug Fix - Users using the default permalink structure should now have URL's being properly changed to/from HTTPS.
10685d91 »
2011-12-14 Version 2.0.3
82 = 2.0.3 =
83 * Force SSL Admin will always be enabled when FORCE_SSL_ADMIN is true in wp-config.php.
84 * Bug Fix - Users using Shared SSL should no longer have issues with the SSL Host path duplicating in URL's.
85 * Bug Fix - The plugin should now function properly when using a subdomain as the SSL Host.
86 * Bug Fix - Page and post links will only be forced to HTTPS when using a different SSL Host that is not a subdomain of your Home URL.
87 * Bug Fix - WordPress HTTPS should no longer generate erroneous notices and warnings in apache error logs. (If I missed any, let me know)
88 = 2.0.2 =
89 * Bug Fix - SSL Host option was not being saved correctly upon subsequent saves. This was causing redirect loops for most users.
90 = 2.0.1 =
91 * Ensured that deprected options are removed from a WordPress installation when activating the plugin.
92 * Added a button to the WordPress HTTPS settings page to reset all plugin settings and cache.
93 * Bug Fix - URL's entered for SSL Host were not validing correctly.
94 * Bug Fix - External URL's were not always being identified as valid external elements.
95 * Bug Fix - Slight enhancement to SSL detection.
96 = 2.0 =
97 * Full support for using a custom SSL port has been added. A special thanks to <a href="http://chrisdoingweb.com/">Chris "doingweb" Antes</a> for his feedback and testing of this feature.
98 * Forcing pages to/from HTTPS is now pluggable using the 'force_ssl' filter.
99 * When using Force Shared SSL Admin, links to the admin panel will always be rewritten with the Shared SSL Host.
100 * When using Shared SSL, all links to post and pages from within the admin panel will use the Shared SSL Host to retain administration functionality on those pages.
101 * Redirects to the admin panel now hook into wp_redirect rather than using the auth_redirect pluggable function.
102 * Canonical redirects will now still occur on sites usinga different SSL Host, but not on secure pages.
103 * Cookies are now set with hooks rather than pluggable functions.
104 * Plugin will now delete all options and custom metadata when uninstalled.
105 * Added a HTTP_X_FORWARDED_PROTO check to the is_ssl function.
106 * Internal HTTPS Elements option has been removed. Disabling this option was never a good idea, so it was removed and the plugin will always act as it did when this option was enabled.
107 * External HTTPS Elements option has been removed. The handling of external elements has improved in such a way that this option is no longer required.
108 * Disable Automatic HTTPS option has been removed. This option should have generally been enabled anyway.
109 * Bug Fix - After logging in, the logged_in cookie was not being set properly. This caused the admin bar to not show up in both HTTP and HTTPS.
110 * Bug Fix - When using Shared SSL, the login page would not honor the redirect_to variable after a successful login.
111 = 1.9.2 =
112 * Added External URL caching to the plugin so that external elements will only be checked for once, increasing the speed of sites not using the Bypass External Check option.
113 * Any forms whose action points to page that has the Forced SSL option on will be updated to HTTPS even on HTTP pages.
114 * Bug Fix - When using Shared SSL, permalink structure was being buggy.
115 * Bug Fix - Certain server configurations were causing the plugin to create redirect loops when using the Force SSL Exclusively option.
116 = 1.9.1 =
117 * Bug Fix - Cookies were not being set to the correct paths when logging in, causing logins to fail.
118 * Bug Fix - Links to the front page when using latest posts were not correctly being set to HTTP/HTTPS.
119 * Bug Fix - When using Shared SSL, the HTTPS version of the site_url was not being correctly replaced with the Shared SSL URL for internal elements.
120 * Bug Fix - When using Shared SSL, the admin login page was not always redirecting properly due to output buffering.
121 * Bug Fix - When using Shared SSL, the auth_redirect function was not redirecting to the Shared SSL URL.
122 * Bug Fix - If the home_url contained 'www' but the URL appeared without 'www', the URL would not be fixed.
123 * Standards - Updated redirect method to use https or http as a an argument rather than true or false to better comply with WordPress coding standards.
124 = 1.9 =
125 * Created Updates widget on settings screen to allow for dynamic updates from the plugin developers.
126 * Added support for PHP4.
127 * Converted all spaces to tabs in source.
128 * Force Shared SSL Admin option added to allow those using Shared SSL the ability to use their certificate for their admin dashboard.
129 * Bug fix - Force SSL checkbox will now appear on WordPress versions below 2.9.
130 * Bug fix - Password protected pages forced to SSL will now work properly.
131 * Bug fix - Plugin should no longer break feeds.
132 * Numerous other bug fixes that have since been forgotten due to the length of time this version has been in development.
133 = 1.8.5 =
134 * In version 1.8.5, when a page is forced to HTTPS, any links to that page will always be HTTPS, even when using the 'Disable Automatic HTTPS' option. Likewise, when the 'Force SSL Exclusively' option is enabled, all links to pages not forced to HTTPS will be changed to HTTP on HTTPS pages.
135 * Updated RegEx's for more complicated URL's.
136 * Bug fix - When in the admin panel, only link URL's are changed back to HTTP again.
137 * Added support for using Shared SSL together with the FORCE_SSL_ADMIN and FORCE_SSL_LOGIN options.
138 = 1.8.1 =
139 * Re-enabled the canonical redirect for WordPres sites not using Shared SSL.
140 = 1.8 =
141 * Fixed cross-browser CSS issue on plugin settings page.
142 * Corrected and updated plugin settings validation.
143 * Lengthened the fade out timer on messages from the plugin settings page from 2 to 5 seconds so that the more lengthy error messages could be read before the message faded.
144 * If viewing an admin page via SSL, and your Home URL is not set to HTTPS, links to the front-end of the website will be forced to HTTP. By default, WordPress changes these links to HTTPS.
145 * When using Shared SSL, any anchor that links to the regular HTTPS version of the domain will be changed to use the Shared SSL Host.
146 * Added embed and param tags to the list of tags that are fixed by WordPress HTTPS. This is to fix flash movies.
147 = 1.7.5 =
148 * Bug fix - When using 'Latest Posts' as the front page, the front page would redirect to HTTP when viewed over HTTPS even if the 'Force SSL Exclusively' option was disabled.
149 * Prevented the 'Disable Automatic HTTPS' option from parsing URL's in the admin panel.
150 * General code cleanup and such.
151 = 1.7 =
152 * Bug fix - External URL's were not being forced to HTTPS after the last update.
153 * Added the functionality to correct relative URL's when using Shared SSL.
154 * General code cleanup and such.
155 = 1.6.5 =
156 * Added support for Shared SSL.
157 = 1.6.3 =
158 * Changed the redirection check to use `template_redirect` hook rather than `get_header`.
159 = 1.6.2 =
160 * Tag links were not being set back to HTTP when the 'Disable Automatic HTTPS' option was enabled.
161 = 1.6.1 =
162 * Bug fix - front page redirection was causing issues when a static page was selected for the posts page.
163 = 1.6 =
164 * Added the ability to force the front page to HTTPS.
165 * Multiple enhancements to core functionality of plugin. Mostly just changing code to integrate more smoothely with WordPress.
166 * Enhancements have been made to the plugin's settings page.
167 = 1.5.2 =
168 * Fixed a bug that would prevent stylesheets from being fixed if the rel attribute came after the href attribute. Bug could have also caused errors with other tags.
169 = 1.5.1 =
170 * Added input elements with the type of 'image' to be filtered for insecure content.
171 = 1.5 =
172 * Added the ability to force SSL on certain pages.
173 * Also added the option to exclusively force SSL on certain pages. Pages not forced to HTTPS are forced to HTTP.
174 * Plugin now filters the `bloginfo` and `bloginfo_url` functions for HTTPS URL's when the 'Disable Automatic HTTPS' option is enabled in WordPress 3.0+.
175 = 1.0.1 =
176 * Bug fix.
177 = 1.0 =
178 * Major modifications to plugin structure, efficiency, and documentation.
179 * Added the option to disable WordPress 3.0+ from changing all of your page, category and post links to HTTPS.
180 = 0.5.1 =
181 * Bug fix.
182 = 0.5 =
183 * Due to increasing concerns about plugin performance, the option to bypass the HTTPS check on external elements has been added.
184 = 0.4 =
185 * Plugin functions converted to OOP class.
186 * The plugin will now attempt to set the allow_url_fopen option to true with `ini_set` function if possible.
187 = 0.3 =
188 * Added the option to change external elements to HTTPS if the external server allows the elements to be accessed via HTTPS.
189 = 0.2 =
190 * Changed the way in which HTTPS was detected to be more reliable.
191 = 0.1 =
192 * Initial Release.
193
194 == Upgrade Notice ==
195 = 1.7 =
196 1.6.5 created a bug in which external elements were no longer forced to HTTPS. Please update to fix this.
197 = 1.6.1 =
198 Version 1.6.1 fixes a bug with using a static page for the posts page.
199 = 1.0.1 =
200 Version 1.0.1 fixes a bug in 1.0 that made it to release. Apologies!
201 = 1.0 =
202 Version 1.0 gives you the ability to disable WordPress 3.0+ from changing all of your page, category and post links to HTTPS.
203 = 0.5.1 =
204 Fixes `PHP Warning: Invalid argument supplied for foreach()` error.
205 = 0.3 =
206 Version 0.3 gives you the option to change external elements to HTTPS if the external server allows the elements to be accessed via HTTPS.
207 = 0.2 =
e30d8fdd »
2011-12-15 Updated with 2.0.4 change log.
208 Version 0.1 did not correctly detect HTTPS on IIS and possibly other servers. Please update to version 0.2 to fix this issue.
Something went wrong with that request. Please try again.