[wp-trac] [WordPress Trac] #44899: redirect_canonical redirects to another URL
WordPress Trac
noreply at wordpress.org
Wed Sep 5 14:34:56 UTC 2018
#44899: redirect_canonical redirects to another URL
--------------------------+-----------------------------
Reporter: melicerte | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 4.9.8
Severity: critical | Keywords: needs-patch
Focuses: |
--------------------------+-----------------------------
Hi,
on a fresh install of WordPress 4.9.8 :
http://sub.yourdomain.com/?xtor=AD-4970-%5BSocial%5D-%5B%5D-%5BPPL%5D-%5BFacebook%5D-%5B228284160&105478095%5D-%5B0%5D
will be redirected to :
http://sub.yourdomain.com/?xtor=AD-4970-%5BSocial%5D-%5B%5D-%5BPPL%5D-%5BFacebook%5D-%5B228284160&105478095]-%5B0%5D
Problem is : it does an 301. And, combined with Facebook mobile on Iphone
link to the WordPress, it retries forever. 21 000 hits / 5 minutes on our
server. Glad it was strong enough to sustain until we find the bug and
temporarily deactivated
{{{
redirect_canonical
}}}
with :
{{{#!php
<?php
remove_action('template_redirect', 'redirect_canonical');
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/44899>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list