Changeset 18633 for trunk/wp-includes/canonical.php
- Timestamp:
- 09/03/2011 04:02:41 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/canonical.php
r18540 r18633 15 15 * Search engines consider www.somedomain.com and somedomain.com to be two 16 16 * different URLs when they both go to the same location. This SEO enhancement 17 * prevents penal ity for duplicate content by redirecting all incoming links to17 * prevents penalty for duplicate content by redirecting all incoming links to 18 18 * one or the other. 19 19 * … … 176 176 // Create the destination url for this taxonomy 177 177 $tax_url = parse_url($tax_url); 178 if ( ! empty($tax_url['query']) ) { // Taxonomy access able via ?taxonomy=..&term=.. or any custom qv..178 if ( ! empty($tax_url['query']) ) { // Taxonomy accessible via ?taxonomy=..&term=.. or any custom qv.. 179 179 parse_str($tax_url['query'], $query_vars); 180 180 $redirect['query'] = add_query_arg($query_vars, $redirect['query']); 181 } else { // Taxonomy is access able via a "pretty-URL"181 } else { // Taxonomy is accessible via a "pretty-URL" 182 182 $redirect['path'] = $tax_url['path']; 183 183 }
Note: See TracChangeset
for help on using the changeset viewer.