Changeset 6143
- Timestamp:
- 09/20/2007 08:25:43 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/canonical.php
r6118 r6143 18 18 if ( false === $original ) 19 19 return; 20 21 // Some PHP setups turn requests for / into /index.php in REQUEST_URI 22 $original['path'] = preg_replace('|/index\.php$|', '/', $original['path']); 20 23 21 24 $redirect = $original; … … 112 115 unset($redirect['port']); 113 116 114 // trailing /index.php or /index.php/115 $redirect['path'] = preg_replace('|/index.php/ ?$|', '/', $redirect['path']);117 // trailing /index.php/ 118 $redirect['path'] = preg_replace('|/index.php/$|', '/', $redirect['path']); 116 119 117 120 // strip /index.php/ when we're not using PATHINFO permalinks
Note: See TracChangeset
for help on using the changeset viewer.