Changeset 1786851
- Timestamp:
- 12/14/2017 10:34:03 AM (8 years ago)
- Location:
- wp-ssl-redirect/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (2 diffs)
-
wp-ssl-redirect.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-ssl-redirect/trunk/readme.txt
r1775500 r1786851 4 4 Requires at least: 3.95 5 5 Tested up to: 4.9 6 Stable tag: 1. 3.26 Stable tag: 1.4 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 37 37 == 1.3.2 == 38 38 * Fixed a major bug related to sub-directory installations 39 == 1.4 == 40 * Fixed a minor bug related to 301 redirects -
wp-ssl-redirect/trunk/wp-ssl-redirect.php
r1775492 r1786851 30 30 <div class="notice notice-error"> 31 31 <p>All In One SEO Pack is known to create issues with WP SSL Redirect so WP SSL Redirect's features will not work unless you will deactivate <strong>All In One SEO Pack</strong> first.</p> 32 </div>33 <?php }?>34 <?php35 if(is_plugin_active('wordpress-seo/wp-seo.php')) {?>36 <div class="notice notice-error">37 <p>Yoast SEO is known to create issues with WP SSL Redirect so WP SSL Redirect's features will not work unless you will deactivate <strong>Yoast SEO</strong> first.</p>38 32 </div> 39 33 <?php }?> … … 87 81 } 88 82 } 89 90 $wpsslredir_url = str_replace('http://', 'https://', $wpsslredir_requested_url);91 83 $wpsslredir_new_siteurl = str_replace('http://', 'https://', $wpsslredir_main_url); 92 84 if($wpsslredir_new_siteurl !== site_url()) { … … 96 88 } 97 89 } 98 90 $redir_parsed = parse_url(str_replace('http://', 'https://', $wpsslredir_requested_url)); 91 $wpsslredir_url = rtrim(site_url(), '/') . $redir_parsed['path']; 99 92 if($requested_full !== $wpsslredir_url) { 100 93 header('Location: '.$wpsslredir_url, true, 301);
Note: See TracChangeset
for help on using the changeset viewer.