Changeset 1268106
- Timestamp:
- 10/18/2015 07:09:55 AM (10 years ago)
- Location:
- permalink-fix-disable-canonical-redirects-pack
- Files:
-
- 2 deleted
- 4 edited
-
tags/1.0.4/additional-instructions.rtf (deleted)
-
tags/1.0.4/permalinkpow.php (modified) (2 diffs)
-
tags/1.0.4/readme.txt (modified) (1 diff)
-
trunk/additional-instructions.rtf (deleted)
-
trunk/permalinkpow.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
permalink-fix-disable-canonical-redirects-pack/tags/1.0.4/permalinkpow.php
r353442 r1268106 21 21 Plugin Name: Permalink Fix & Disable Canonical Redirects Pack 22 22 Plugin Author: Nick Schalk & Chris Cheney 23 Plugin URI: http ://www.g0tweb.com/request_uri23 Plugin URI: https://github.com/ccheney/permalink-fix-disable-canonical-redirects-pack 24 24 Version: 1.0 25 25 Description: For WordPress installations residing on Concentric/XO Communications shared hosting platform only. This plugin enables WordPress' Permalink functionality & disables the canonical redirect feature. Remember to select your custom permalink setting in the dashboard. Disable canonical redirect snippet by Mark Jaquith. This plugin also appears to resolve an issue with the recent release of WordPress 3.1 and IIS servers. … … 33 33 */ 34 34 add_action('init', 'requesturipow_init'); 35 35 36 function requesturipow_init() { 36 { 37 if(isset($_REQUEST['q'])) { 38 $_SERVER['REQUEST_URI'] = "/" . $_REQUEST["q"]; 39 }else{ 40 if (empty($_SERVER['QUERY_STRING'])) { 41 $_SERVER['REQUEST_URI'] = $_SERVER['SCRIPT_NAME']; 42 } else { 43 $_SERVER['REQUEST_URI'] = $_SERVER['SCRIPT_NAME'] . "?" . 44 $_SERVER['QUERY_STRING']; 45 } 46 } 47 } 37 if(isset($_REQUEST['q'])) { 38 $_SERVER['REQUEST_URI'] = "/" . $_REQUEST["q"]; 39 } else { 40 if (empty($_SERVER['QUERY_STRING'])) { 41 $_SERVER['REQUEST_URI'] = $_SERVER['SCRIPT_NAME']; 42 } else { 43 $_SERVER['REQUEST_URI'] = $_SERVER['SCRIPT_NAME'] . "?" . $_SERVER['QUERY_STRING']; 44 } 45 } 48 46 } 49 remove_filter('template_redirect', 'redirect_canonical'); 47 48 remove_filter('template_redirect', 'redirect_canonical'); 50 49 ?> -
permalink-fix-disable-canonical-redirects-pack/tags/1.0.4/readme.txt
r353442 r1268106 1 === P lugin Name===1 === Permalink Fix & Disable Canonical Redirects === 2 2 Contributors: Chris Cheney, Nick Schalk, Michael Szczepanski 3 Plugin Name: XOPermalink Fix & Disable Canonical Redirects Pack4 Plugin URI: http ://www.g0tweb.com/request_uri5 Tags: 500 server error parsing error, ashurbanipal, canonical redirection, cnchost, concentric, endless loop, endless redirection, home page loop, htaccess, permalinks, xo communications, xohost, concentric6 Author URI: http ://www.g0tweb.com/request_uri3 Plugin Name: Permalink Fix & Disable Canonical Redirects Pack 4 Plugin URI: https://github.com/ccheney/permalink-fix-disable-canonical-redirects-pack 5 Tags: 500 server error, parsing error, ashurbanipal, canonical redirection, cnchost, concentric, endless loop, endless redirection, home page loop, htaccess, permalinks, xo communications, xohost, concentric 6 Author URI: https://github.com/ccheney/ 7 7 Author: Chris Cheney 8 8 Requires at least: 2.3 9 Tested up to: 3.110 Stable tag: 1.0. 311 Version: 1.0.3 12 License : GPLv29 Tested up to: 4.3.1 10 Stable tag: 1.0.4 11 License: GPLv2 or later 12 License URI: http://www.gnu.org/licenses/gpl-2.0.html 13 13 14 This plugin makes WordPress' default permalinks behavior work on the Concentric/XO Communications shared hosting platform. It also disables the canonical redirection feature as it causes an endless redirection loop outside of wp-admin. This plugin also appears to resolve an issue with therecent release of WordPress 3.1 and IIS servers.14 This plugin makes WordPress' default permalinks behavior work on the Concentric/XO Communications shared hosting platform. It also disables the canonical redirection feature as it causes an endless redirection loop outside of wp-admin. This plugin also appears to resolve an issue with a recent release of WordPress 3.1 and IIS servers. 15 15 16 == Description == 17 16 Description 17 ----------- 18 18 This plugin ensures the REQUEST_URI variable is set during the initialization of WordPress, allowing permalinks to work correctly. 19 19 20 21 == Installation == 22 20 Installation 21 ------------ 23 22 The REQUEST_URI variable is not set correctly by the server platform. 24 23 This plugin builds each variation of REQUEST_URI by peicing together other available variables. 25 24 26 1. Upload the 'permalink-fix-disable-canonical-redirects-pack' folder to the 'wp-content/plugins/' directory. 25 1. Upload the 'permalink-fix-disable-canonical-redirects-pack' folder to the 'wp-content/plugins/' directory. 27 26 2. Log into the WordPress dashboard http://example.com/wp-admin and activate the plugin. 27 3. Setup your .htaccess file as described below, this is the most important step. 28 4. _Make sure the .htaccess file is setup properly._ The server requires that you convert end of line characters to UNIX format (LF). Be sure to add a hard return after the last directive. See additional-instructions.rtf for a step-by-step. 28 29 29 == Frequently Asked Questions == 30 31 Make sure the .htaccess file is setup properly. The server requires that you convert end of line characters to UNIX format. Be sure to add a hard return after the last directive. 32 30 ``` 33 31 RewriteCond %{REQUEST_FILENAME} !-d 34 32 RewriteCond %{REQUEST_FILENAME} !-f 35 33 RewriteRule ^(.*)$ index.php?q=$1 [L,QSA] 34 ``` 36 35 37 == Changelog == 36 5. If for some reason you're using this plugin _outside_ of the Concentric/XO shared hosting enviroment (assuming Apache) use the following .htaccess rules: 37 ``` 38 <IfModule mod_rewrite.c> 39 RewriteEngine On 40 RewriteBase / 41 RewriteCond %{REQUEST_FILENAME} !-f 42 RewriteCond %{REQUEST_FILENAME} !-d 43 RewriteRule ^(.*)$ index.php?q=$1 [L,QSA] 44 </IfModule> 45 ``` 38 46 39 = 1.0.3 = 47 Changelog 48 --------- 49 ### 1.0.4 50 10/18/2015 Compatibility update 40 51 41 * 02/28/2011 Minor description & support URL tweaks. 42 * 43 = 1.0.2 = 52 ### 1.0.3 53 02/28/2011 Minor description & support URL tweaks. 44 54 45 * 02/17/2011 Fixed broken author support links. Added a description about canonical redirection. 55 ### 1.0.2 56 02/17/2011 Fixed broken author support links. Added a description about canonical redirection. 46 57 47 = 1.0.1 = 58 ### 1.0.1 59 01/07/2011 Added detailed instructions for users downloading the file directly instead of through the wp-admin interface. Added htaccess file example. 48 60 49 * 01/07/2011 Added detailed instructions for users downloading the file directly instead of through the wp-admin interface. Added htaccess file example. 61 ### 1.0 62 Final Release - 12/16/2010 Merging of the required disable canonical redirection plugin by Mark Jaquith 50 63 51 = 1.0 = 64 ### 0.6 65 Plugin Development - 12/06/2010 Script was wrapped into a WordPress Plugin for future proofing and ease of use contributed by Nick Schalk 52 66 53 * Final Release - 12/16/2010 Merging of the required disable canonical redirection plugin by Mark Jaquith 54 55 = 0.9b = 56 57 * Plugin Development - 12/06/2010 Script was wrapped into a WordPress Plugin for future proofing and ease of use contributed by Nick Schalk 58 59 = 0.5a = 60 61 * Internal Release - 03/20/2010 Initial REQUEST_URI script written 67 ### 0.5 68 Internal Release - 03/20/2010 Initial REQUEST_URI script written -
permalink-fix-disable-canonical-redirects-pack/trunk/permalinkpow.php
r353442 r1268106 21 21 Plugin Name: Permalink Fix & Disable Canonical Redirects Pack 22 22 Plugin Author: Nick Schalk & Chris Cheney 23 Plugin URI: http ://www.g0tweb.com/request_uri23 Plugin URI: https://github.com/ccheney/permalink-fix-disable-canonical-redirects-pack 24 24 Version: 1.0 25 25 Description: For WordPress installations residing on Concentric/XO Communications shared hosting platform only. This plugin enables WordPress' Permalink functionality & disables the canonical redirect feature. Remember to select your custom permalink setting in the dashboard. Disable canonical redirect snippet by Mark Jaquith. This plugin also appears to resolve an issue with the recent release of WordPress 3.1 and IIS servers. … … 33 33 */ 34 34 add_action('init', 'requesturipow_init'); 35 35 36 function requesturipow_init() { 36 { 37 if(isset($_REQUEST['q'])) { 38 $_SERVER['REQUEST_URI'] = "/" . $_REQUEST["q"]; 39 }else{ 40 if (empty($_SERVER['QUERY_STRING'])) { 41 $_SERVER['REQUEST_URI'] = $_SERVER['SCRIPT_NAME']; 42 } else { 43 $_SERVER['REQUEST_URI'] = $_SERVER['SCRIPT_NAME'] . "?" . 44 $_SERVER['QUERY_STRING']; 45 } 46 } 47 } 37 if(isset($_REQUEST['q'])) { 38 $_SERVER['REQUEST_URI'] = "/" . $_REQUEST["q"]; 39 } else { 40 if (empty($_SERVER['QUERY_STRING'])) { 41 $_SERVER['REQUEST_URI'] = $_SERVER['SCRIPT_NAME']; 42 } else { 43 $_SERVER['REQUEST_URI'] = $_SERVER['SCRIPT_NAME'] . "?" . $_SERVER['QUERY_STRING']; 44 } 45 } 48 46 } 49 remove_filter('template_redirect', 'redirect_canonical'); 47 48 remove_filter('template_redirect', 'redirect_canonical'); 50 49 ?> -
permalink-fix-disable-canonical-redirects-pack/trunk/readme.txt
r353442 r1268106 1 === P lugin Name===1 === Permalink Fix & Disable Canonical Redirects === 2 2 Contributors: Chris Cheney, Nick Schalk, Michael Szczepanski 3 Plugin Name: XOPermalink Fix & Disable Canonical Redirects Pack4 Plugin URI: http ://www.g0tweb.com/request_uri5 Tags: 500 server error parsing error, ashurbanipal, canonical redirection, cnchost, concentric, endless loop, endless redirection, home page loop, htaccess, permalinks, xo communications, xohost, concentric6 Author URI: http ://www.g0tweb.com/request_uri3 Plugin Name: Permalink Fix & Disable Canonical Redirects Pack 4 Plugin URI: https://github.com/ccheney/permalink-fix-disable-canonical-redirects-pack 5 Tags: 500 server error, parsing error, ashurbanipal, canonical redirection, cnchost, concentric, endless loop, endless redirection, home page loop, htaccess, permalinks, xo communications, xohost, concentric 6 Author URI: https://github.com/ccheney/ 7 7 Author: Chris Cheney 8 8 Requires at least: 2.3 9 Tested up to: 3.110 Stable tag: 1.0. 311 Version: 1.0.3 12 License : GPLv29 Tested up to: 4.3.1 10 Stable tag: 1.0.4 11 License: GPLv2 or later 12 License URI: http://www.gnu.org/licenses/gpl-2.0.html 13 13 14 This plugin makes WordPress' default permalinks behavior work on the Concentric/XO Communications shared hosting platform. It also disables the canonical redirection feature as it causes an endless redirection loop outside of wp-admin. This plugin also appears to resolve an issue with therecent release of WordPress 3.1 and IIS servers.14 This plugin makes WordPress' default permalinks behavior work on the Concentric/XO Communications shared hosting platform. It also disables the canonical redirection feature as it causes an endless redirection loop outside of wp-admin. This plugin also appears to resolve an issue with a recent release of WordPress 3.1 and IIS servers. 15 15 16 == Description == 17 16 Description 17 ----------- 18 18 This plugin ensures the REQUEST_URI variable is set during the initialization of WordPress, allowing permalinks to work correctly. 19 19 20 21 == Installation == 22 20 Installation 21 ------------ 23 22 The REQUEST_URI variable is not set correctly by the server platform. 24 23 This plugin builds each variation of REQUEST_URI by peicing together other available variables. 25 24 26 1. Upload the 'permalink-fix-disable-canonical-redirects-pack' folder to the 'wp-content/plugins/' directory. 25 1. Upload the 'permalink-fix-disable-canonical-redirects-pack' folder to the 'wp-content/plugins/' directory. 27 26 2. Log into the WordPress dashboard http://example.com/wp-admin and activate the plugin. 27 3. Setup your .htaccess file as described below, this is the most important step. 28 4. _Make sure the .htaccess file is setup properly._ The server requires that you convert end of line characters to UNIX format (LF). Be sure to add a hard return after the last directive. See additional-instructions.rtf for a step-by-step. 28 29 29 == Frequently Asked Questions == 30 31 Make sure the .htaccess file is setup properly. The server requires that you convert end of line characters to UNIX format. Be sure to add a hard return after the last directive. 32 30 ``` 33 31 RewriteCond %{REQUEST_FILENAME} !-d 34 32 RewriteCond %{REQUEST_FILENAME} !-f 35 33 RewriteRule ^(.*)$ index.php?q=$1 [L,QSA] 34 ``` 36 35 37 == Changelog == 36 5. If for some reason you're using this plugin _outside_ of the Concentric/XO shared hosting enviroment (assuming Apache) use the following .htaccess rules: 37 ``` 38 <IfModule mod_rewrite.c> 39 RewriteEngine On 40 RewriteBase / 41 RewriteCond %{REQUEST_FILENAME} !-f 42 RewriteCond %{REQUEST_FILENAME} !-d 43 RewriteRule ^(.*)$ index.php?q=$1 [L,QSA] 44 </IfModule> 45 ``` 38 46 39 = 1.0.3 = 47 Changelog 48 --------- 49 ### 1.0.4 50 10/18/2015 Compatibility update 40 51 41 * 02/28/2011 Minor description & support URL tweaks. 42 * 43 = 1.0.2 = 52 ### 1.0.3 53 02/28/2011 Minor description & support URL tweaks. 44 54 45 * 02/17/2011 Fixed broken author support links. Added a description about canonical redirection. 55 ### 1.0.2 56 02/17/2011 Fixed broken author support links. Added a description about canonical redirection. 46 57 47 = 1.0.1 = 58 ### 1.0.1 59 01/07/2011 Added detailed instructions for users downloading the file directly instead of through the wp-admin interface. Added htaccess file example. 48 60 49 * 01/07/2011 Added detailed instructions for users downloading the file directly instead of through the wp-admin interface. Added htaccess file example. 61 ### 1.0 62 Final Release - 12/16/2010 Merging of the required disable canonical redirection plugin by Mark Jaquith 50 63 51 = 1.0 = 64 ### 0.6 65 Plugin Development - 12/06/2010 Script was wrapped into a WordPress Plugin for future proofing and ease of use contributed by Nick Schalk 52 66 53 * Final Release - 12/16/2010 Merging of the required disable canonical redirection plugin by Mark Jaquith 54 55 = 0.9b = 56 57 * Plugin Development - 12/06/2010 Script was wrapped into a WordPress Plugin for future proofing and ease of use contributed by Nick Schalk 58 59 = 0.5a = 60 61 * Internal Release - 03/20/2010 Initial REQUEST_URI script written 67 ### 0.5 68 Internal Release - 03/20/2010 Initial REQUEST_URI script written
Note: See TracChangeset
for help on using the changeset viewer.