Changeset 562910
- Timestamp:
- 06/23/2012 02:37:03 PM (14 years ago)
- Location:
- fix-multiple-redirects/trunk
- Files:
-
- 3 edited
-
fix-multiple-redirects.php (modified) (1 diff)
-
include/admin-ui/settings.php (modified) (7 diffs)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
fix-multiple-redirects/trunk/fix-multiple-redirects.php
r561254 r562910 42 42 43 43 $FIXMTPLREDIR_plugin_name = "Fix Multiple Redirects"; 44 $FIXMTPLREDIR_plugin_version = "1. 0";44 $FIXMTPLREDIR_plugin_version = "1.2"; 45 45 $FIXMTPLREDIR_basedir = FIXMTPLREDIR_getBase(); 46 $FIXMTPLREDIR_baseurl = get_bloginfo('wpurl'); 46 47 47 48 -
fix-multiple-redirects/trunk/include/admin-ui/settings.php
r560935 r562910 8 8 global $FIXMTPLREDIR_isDebug; 9 9 global $FIXMTPLREDIR_basedir; 10 global $FIXMTPLREDIR_baseurl; 10 11 global $merged_filters; 11 12 … … 55 56 RewriteBase $FIXMTPLREDIR_basedir 56 57 57 # is existing file or directory 58 # index.php to base 59 RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/ 60 RewriteRule ^index\.php$ $FIXMTPLREDIR_baseurl [R=301,L] 61 62 # is existing file or directory and remove index.php 58 63 RewriteCond %{REQUEST_FILENAME} -f 59 64 RewriteCond %{REQUEST_FILENAME} -d … … 61 66 62 67 # Parametrized url 63 RewriteCond .(php|php3|php4|php5|phtml|htm|html)\?.*$ $168 RewriteCond \.(php|php3|php4|php5|phtml|htm|html)\?.*$ $1 64 69 RewriteRule . - [L,NS,PT] 65 70 … … 67 72 RewriteCond %{REQUEST_FILENAME} !-f 68 73 RewriteCond %{REQUEST_FILENAME} !-d 69 RewriteRule . /index.php [L,NS,PT] 74 RewriteRule . / [L,NS,PT] 75 70 76 71 77 </IfModule>"; … … 88 94 RewriteBase $FIXMTPLREDIR_basedir 89 95 90 # is existing file or directory 96 # index.php to base 97 RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/ 98 RewriteRule ^index\.php$ $FIXMTPLREDIR_baseurl [R=301,L] 99 100 # is existing file or directory and remove index.php 91 101 RewriteCond %{REQUEST_FILENAME} -f 92 102 RewriteCond %{REQUEST_FILENAME} -d … … 94 104 95 105 # Parametrized url 96 RewriteCond .(php|php3|php4|php5|phtml|htm|html)\?.*$ $1106 RewriteCond \.(php|php3|php4|php5|phtml|htm|html)\?.*$ $1 97 107 RewriteRule . - [L,NS,PT] 98 108 … … 100 110 RewriteCond %{REQUEST_FILENAME} !-f 101 111 RewriteCond %{REQUEST_FILENAME} !-d 102 RewriteRule . /index.php [L,NS,PT] 112 RewriteRule . / [L,NS,PT] 113 103 114 104 115 </IfModule>"; -
fix-multiple-redirects/trunk/readme.txt
r561254 r562910 5 5 Requires at least: 2.6 6 6 Tested up to: 3.3.2 CS 7 Stable tag: 1. 18 Version: 1. 17 Stable tag: 1.2 8 Version: 1.2 9 9 License: GPLv3 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 67 67 == Changelog == 68 68 69 = 1.2 = 70 * Extended .htaccess with fixing duplicity of index.php in SEO stats 71 69 72 = 1.1 = 70 73 * Fixed module init … … 75 78 == Upgrade Notice == 76 79 80 = 1.2 = 81 * Extended .htaccess with fixing duplicity of index.php in SEO stats 82 77 83 = 1.1 = 78 84 * Fixed module init
Note: See TracChangeset
for help on using the changeset viewer.