Changeset 1786901
- Timestamp:
- 12/14/2017 11:24:16 AM (8 years ago)
- Location:
- wp-ssl-redirect
- Files:
-
- 2 edited
- 3 copied
-
tags/1.3.2 (copied) (copied from wp-ssl-redirect/trunk)
-
tags/1.3.2/readme.txt (copied) (copied from wp-ssl-redirect/trunk/readme.txt) (1 diff)
-
tags/1.3.2/wp-ssl-redirect.php (copied) (copied from wp-ssl-redirect/trunk/wp-ssl-redirect.php) (2 diffs)
-
trunk/readme.txt (modified) (1 diff)
-
trunk/wp-ssl-redirect.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-ssl-redirect/tags/1.3.2/readme.txt
r1786868 r1786901 24 24 The plugin makes use of $_SERVER array to check either the URL is accessed over HTTPS or HTTP. If the request is made over HTTP, then the plugin sends a 301 redirect header and performs the redirect to the HTTPS version of same URL. 25 25 26 = 301 Redirect is Not Working = 27 If <code>WP_SITEURL</code> and <code>WP_HOME</code> are defined in your WordPress website's <code>wp-config.php</code> file, then uncomment or delete these two constants, otherwise WP SSL Redirect's 301 redirect may not work properly. 28 26 29 == Screenshots == 27 30 none -
wp-ssl-redirect/tags/1.3.2/wp-ssl-redirect.php
r1786868 r1786901 81 81 } 82 82 } 83 84 $wpsslredir_url = str_replace('http://', 'https://', $wpsslredir_requested_url); 83 85 $wpsslredir_new_siteurl = str_replace('http://', 'https://', $wpsslredir_main_url); 84 86 if($wpsslredir_new_siteurl !== site_url()) { … … 88 90 } 89 91 } 90 $redir_parsed = parse_url(str_replace('http://', 'https://', $wpsslredir_requested_url)); 91 $wpsslredir_url = rtrim(site_url(), '/') . $redir_parsed['path']; 92 92 93 if($requested_full !== $wpsslredir_url) { 93 94 header('Location: '.$wpsslredir_url, true, 301); -
wp-ssl-redirect/trunk/readme.txt
r1786868 r1786901 24 24 The plugin makes use of $_SERVER array to check either the URL is accessed over HTTPS or HTTP. If the request is made over HTTP, then the plugin sends a 301 redirect header and performs the redirect to the HTTPS version of same URL. 25 25 26 = 301 Redirect is Not Working = 27 If <code>WP_SITEURL</code> and <code>WP_HOME</code> are defined in your WordPress website's <code>wp-config.php</code> file, then uncomment or delete these two constants, otherwise WP SSL Redirect's 301 redirect may not work properly. 28 26 29 == Screenshots == 27 30 none -
wp-ssl-redirect/trunk/wp-ssl-redirect.php
r1786868 r1786901 81 81 } 82 82 } 83 84 $wpsslredir_url = str_replace('http://', 'https://', $wpsslredir_requested_url); 83 85 $wpsslredir_new_siteurl = str_replace('http://', 'https://', $wpsslredir_main_url); 84 86 if($wpsslredir_new_siteurl !== site_url()) { … … 88 90 } 89 91 } 90 $redir_parsed = parse_url(str_replace('http://', 'https://', $wpsslredir_requested_url)); 91 $wpsslredir_url = rtrim(site_url(), '/') . $redir_parsed['path']; 92 92 93 if($requested_full !== $wpsslredir_url) { 93 94 header('Location: '.$wpsslredir_url, true, 301);
Note: See TracChangeset
for help on using the changeset viewer.