Plugin Directory

Changeset 1268106


Ignore:
Timestamp:
10/18/2015 07:09:55 AM (10 years ago)
Author:
ccheney
Message:

Compatibility update

Location:
permalink-fix-disable-canonical-redirects-pack
Files:
2 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • permalink-fix-disable-canonical-redirects-pack/tags/1.0.4/permalinkpow.php

    r353442 r1268106  
    2121Plugin Name: Permalink Fix & Disable Canonical Redirects Pack
    2222Plugin Author: Nick Schalk & Chris Cheney
    23 Plugin URI: http://www.g0tweb.com/request_uri
     23Plugin URI: https://github.com/ccheney/permalink-fix-disable-canonical-redirects-pack
    2424Version: 1.0
    2525Description: 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.
     
    3333*/
    3434add_action('init', 'requesturipow_init');
     35
    3536function 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    }
    4846}
    49     remove_filter('template_redirect', 'redirect_canonical');
     47
     48remove_filter('template_redirect', 'redirect_canonical');
    5049?>
  • permalink-fix-disable-canonical-redirects-pack/tags/1.0.4/readme.txt

    r353442 r1268106  
    1 === Plugin Name ===
     1=== Permalink Fix & Disable Canonical Redirects ===
    22Contributors: Chris Cheney, Nick Schalk, Michael Szczepanski
    3 Plugin Name: XO Permalink Fix & Disable Canonical Redirects Pack
    4 Plugin URI: http://www.g0tweb.com/request_uri
    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: http://www.g0tweb.com/request_uri
     3Plugin Name: Permalink Fix & Disable Canonical Redirects Pack
     4Plugin URI: https://github.com/ccheney/permalink-fix-disable-canonical-redirects-pack
     5Tags: 500 server error, parsing error, ashurbanipal, canonical redirection, cnchost, concentric, endless loop, endless redirection, home page loop, htaccess, permalinks, xo communications, xohost, concentric
     6Author URI: https://github.com/ccheney/
    77Author: Chris Cheney
    88Requires at least: 2.3
    9 Tested up to: 3.1
    10 Stable tag: 1.0.3
    11 Version: 1.0.3
    12 License: GPLv2
     9Tested up to: 4.3.1
     10Stable tag: 1.0.4
     11License: GPLv2 or later
     12License URI: http://www.gnu.org/licenses/gpl-2.0.html
    1313
    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 the recent release of WordPress 3.1 and IIS servers.
     14This 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.
    1515
    16 == Description ==
    17 
     16Description
     17-----------
    1818This plugin ensures the REQUEST_URI variable is set during the initialization of WordPress, allowing permalinks to work correctly.
    1919
    20 
    21 == Installation ==
    22 
     20Installation
     21------------
    2322The REQUEST_URI variable is not set correctly by the server platform.
    2423This plugin builds each variation of REQUEST_URI by peicing together other available variables.
    2524
    26 1. Upload the 'permalink-fix-disable-canonical-redirects-pack' folder to the 'wp-content/plugins/' directory. 
     251. Upload the 'permalink-fix-disable-canonical-redirects-pack' folder to the 'wp-content/plugins/' directory.
    27262. Log into the WordPress dashboard http://example.com/wp-admin and activate the plugin.
     273. Setup your .htaccess file as described below, this is the most important step.
     284. _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.
    2829
    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```
    3331RewriteCond %{REQUEST_FILENAME} !-d
    3432RewriteCond %{REQUEST_FILENAME} !-f
    3533RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
     34```
    3635
    37 == Changelog ==
     365. 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```
    3846
    39 = 1.0.3 =
     47Changelog
     48---------
     49### 1.0.4
     5010/18/2015 Compatibility update
    4051
    41 * 02/28/2011 Minor description & support URL tweaks.
    42 *
    43 = 1.0.2 =
     52### 1.0.3
     5302/28/2011 Minor description & support URL tweaks.
    4454
    45 * 02/17/2011 Fixed broken author support links. Added a description about canonical redirection.
     55### 1.0.2
     5602/17/2011 Fixed broken author support links. Added a description about canonical redirection.
    4657
    47 = 1.0.1 =
     58### 1.0.1
     5901/07/2011 Added detailed instructions for users downloading the file directly instead of through the wp-admin interface. Added htaccess file example.
    4860
    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
     62Final Release - 12/16/2010 Merging of the required disable canonical redirection plugin by Mark Jaquith
    5063
    51 = 1.0 =
     64### 0.6
     65Plugin Development - 12/06/2010 Script was wrapped into a WordPress Plugin for future proofing and ease of use contributed by Nick Schalk
    5266
    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
     68Internal Release - 03/20/2010 Initial REQUEST_URI script written
  • permalink-fix-disable-canonical-redirects-pack/trunk/permalinkpow.php

    r353442 r1268106  
    2121Plugin Name: Permalink Fix & Disable Canonical Redirects Pack
    2222Plugin Author: Nick Schalk & Chris Cheney
    23 Plugin URI: http://www.g0tweb.com/request_uri
     23Plugin URI: https://github.com/ccheney/permalink-fix-disable-canonical-redirects-pack
    2424Version: 1.0
    2525Description: 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.
     
    3333*/
    3434add_action('init', 'requesturipow_init');
     35
    3536function 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    }
    4846}
    49     remove_filter('template_redirect', 'redirect_canonical');
     47
     48remove_filter('template_redirect', 'redirect_canonical');
    5049?>
  • permalink-fix-disable-canonical-redirects-pack/trunk/readme.txt

    r353442 r1268106  
    1 === Plugin Name ===
     1=== Permalink Fix & Disable Canonical Redirects ===
    22Contributors: Chris Cheney, Nick Schalk, Michael Szczepanski
    3 Plugin Name: XO Permalink Fix & Disable Canonical Redirects Pack
    4 Plugin URI: http://www.g0tweb.com/request_uri
    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: http://www.g0tweb.com/request_uri
     3Plugin Name: Permalink Fix & Disable Canonical Redirects Pack
     4Plugin URI: https://github.com/ccheney/permalink-fix-disable-canonical-redirects-pack
     5Tags: 500 server error, parsing error, ashurbanipal, canonical redirection, cnchost, concentric, endless loop, endless redirection, home page loop, htaccess, permalinks, xo communications, xohost, concentric
     6Author URI: https://github.com/ccheney/
    77Author: Chris Cheney
    88Requires at least: 2.3
    9 Tested up to: 3.1
    10 Stable tag: 1.0.3
    11 Version: 1.0.3
    12 License: GPLv2
     9Tested up to: 4.3.1
     10Stable tag: 1.0.4
     11License: GPLv2 or later
     12License URI: http://www.gnu.org/licenses/gpl-2.0.html
    1313
    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 the recent release of WordPress 3.1 and IIS servers.
     14This 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.
    1515
    16 == Description ==
    17 
     16Description
     17-----------
    1818This plugin ensures the REQUEST_URI variable is set during the initialization of WordPress, allowing permalinks to work correctly.
    1919
    20 
    21 == Installation ==
    22 
     20Installation
     21------------
    2322The REQUEST_URI variable is not set correctly by the server platform.
    2423This plugin builds each variation of REQUEST_URI by peicing together other available variables.
    2524
    26 1. Upload the 'permalink-fix-disable-canonical-redirects-pack' folder to the 'wp-content/plugins/' directory. 
     251. Upload the 'permalink-fix-disable-canonical-redirects-pack' folder to the 'wp-content/plugins/' directory.
    27262. Log into the WordPress dashboard http://example.com/wp-admin and activate the plugin.
     273. Setup your .htaccess file as described below, this is the most important step.
     284. _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.
    2829
    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```
    3331RewriteCond %{REQUEST_FILENAME} !-d
    3432RewriteCond %{REQUEST_FILENAME} !-f
    3533RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
     34```
    3635
    37 == Changelog ==
     365. 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```
    3846
    39 = 1.0.3 =
     47Changelog
     48---------
     49### 1.0.4
     5010/18/2015 Compatibility update
    4051
    41 * 02/28/2011 Minor description & support URL tweaks.
    42 *
    43 = 1.0.2 =
     52### 1.0.3
     5302/28/2011 Minor description & support URL tweaks.
    4454
    45 * 02/17/2011 Fixed broken author support links. Added a description about canonical redirection.
     55### 1.0.2
     5602/17/2011 Fixed broken author support links. Added a description about canonical redirection.
    4657
    47 = 1.0.1 =
     58### 1.0.1
     5901/07/2011 Added detailed instructions for users downloading the file directly instead of through the wp-admin interface. Added htaccess file example.
    4860
    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
     62Final Release - 12/16/2010 Merging of the required disable canonical redirection plugin by Mark Jaquith
    5063
    51 = 1.0 =
     64### 0.6
     65Plugin Development - 12/06/2010 Script was wrapped into a WordPress Plugin for future proofing and ease of use contributed by Nick Schalk
    5266
    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
     68Internal Release - 03/20/2010 Initial REQUEST_URI script written
Note: See TracChangeset for help on using the changeset viewer.