Plugin Directory

Changeset 562910


Ignore:
Timestamp:
06/23/2012 02:37:03 PM (14 years ago)
Author:
jurajpuchky
Message:

1.2

  • Extended .htaccess with fixing duplicity of index.php in SEO stats
Location:
fix-multiple-redirects/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • fix-multiple-redirects/trunk/fix-multiple-redirects.php

    r561254 r562910  
    4242
    4343$FIXMTPLREDIR_plugin_name = "Fix Multiple Redirects";
    44 $FIXMTPLREDIR_plugin_version = "1.0";
     44$FIXMTPLREDIR_plugin_version = "1.2";
    4545$FIXMTPLREDIR_basedir = FIXMTPLREDIR_getBase();
     46$FIXMTPLREDIR_baseurl = get_bloginfo('wpurl');
    4647
    4748
  • fix-multiple-redirects/trunk/include/admin-ui/settings.php

    r560935 r562910  
    88global $FIXMTPLREDIR_isDebug;
    99global $FIXMTPLREDIR_basedir;
     10global $FIXMTPLREDIR_baseurl;
    1011global $merged_filters;
    1112
     
    5556RewriteBase $FIXMTPLREDIR_basedir
    5657
    57 # is existing file or directory
     58# index.php to base
     59RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/
     60RewriteRule ^index\.php$ $FIXMTPLREDIR_baseurl [R=301,L]
     61
     62# is existing file or directory and remove index.php
    5863RewriteCond %{REQUEST_FILENAME} -f 
    5964RewriteCond %{REQUEST_FILENAME} -d
     
    6166
    6267# Parametrized url
    63 RewriteCond .(php|php3|php4|php5|phtml|htm|html)\?.*$ $1
     68RewriteCond \.(php|php3|php4|php5|phtml|htm|html)\?.*$ $1
    6469RewriteRule . - [L,NS,PT]
    6570
     
    6772RewriteCond %{REQUEST_FILENAME} !-f 
    6873RewriteCond %{REQUEST_FILENAME} !-d
    69 RewriteRule . /index.php [L,NS,PT]
     74RewriteRule . / [L,NS,PT]
     75
    7076
    7177</IfModule>";
     
    8894RewriteBase $FIXMTPLREDIR_basedir
    8995
    90 # is existing file or directory
     96# index.php to base
     97RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/
     98RewriteRule ^index\.php$ $FIXMTPLREDIR_baseurl [R=301,L]
     99
     100# is existing file or directory and remove index.php
    91101RewriteCond %{REQUEST_FILENAME} -f 
    92102RewriteCond %{REQUEST_FILENAME} -d
     
    94104
    95105# Parametrized url
    96 RewriteCond .(php|php3|php4|php5|phtml|htm|html)\?.*$ $1
     106RewriteCond \.(php|php3|php4|php5|phtml|htm|html)\?.*$ $1
    97107RewriteRule . - [L,NS,PT]
    98108
     
    100110RewriteCond %{REQUEST_FILENAME} !-f 
    101111RewriteCond %{REQUEST_FILENAME} !-d
    102 RewriteRule . /index.php [L,NS,PT]
     112RewriteRule . / [L,NS,PT]
     113
    103114
    104115</IfModule>";
  • fix-multiple-redirects/trunk/readme.txt

    r561254 r562910  
    55Requires at least: 2.6
    66Tested up to: 3.3.2 CS
    7 Stable tag: 1.1
    8 Version: 1.1
     7Stable tag: 1.2
     8Version: 1.2
    99License: GPLv3 or later
    1010License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    6767== Changelog ==
    6868
     69= 1.2 =
     70* Extended .htaccess with fixing duplicity of index.php in SEO stats
     71
    6972= 1.1 =
    7073* Fixed module init
     
    7578== Upgrade Notice ==
    7679
     80= 1.2 =
     81* Extended .htaccess with fixing duplicity of index.php in SEO stats
     82
    7783= 1.1 =
    7884* Fixed module init
Note: See TracChangeset for help on using the changeset viewer.