yorkiebar
Forum Replies Created
-
Forum: Networking WordPress
In reply to: 4.5 update broke my sites with 301 redirectsTracked this down to a bug within canonical.php. Something changed in the last update that broke things. Put the old version back (just this file) and everything works fine again.
Forum: Fixing WordPress
In reply to: 4.5 update broke my sites with 301 redirectsOk, making some progress. I’ve not worked exactly what the bug is that’s causing the issue, php isn’t my first language. However, it’s in this file:
<wp_base>/wp-includes/canonical.php
somewhere in redirect_canonical()Putting the old version of canonical.php back cures my issue. There doesn’t appear to be much changed in there, but there are a couple of changes involving is_front_page() which I think it where the issue lies. Hopefully, frabcus, this will work for you too.
Forum: Fixing WordPress
In reply to: 4.5 update broke my sites with 301 redirectsNot yet. The site it redirects to is the one entered in the “Site Address (URL)” box, it now seems to ignore WP_HOME and WP_SITEURL on the homepage. The sub-pages all work fine for some reason.
Someone suggested the following to help track down where in the logical flow the redirect is coming from:
You could also try hooking into the different actions in order, going down the list, to see how far it is making it and confirm the WP values: https://codex.wordpress.org/Plugin_API/Action_Referenceadd_action( ‘registered_taxonomy’, function(){ die( siteurl() ); } );
But I’m not sure where to do that, it’s beyond my WP knowledge.
Always got the option of dropping back a version if I can’t get it sorted soon.
Forum: Networking WordPress
In reply to: 4.5 update broke my sites with 301 redirectsI disabled all the plug-ins and it still does the redirect. If you think of it in it’s simplest form it’s not that non-standard. If the site was http://www.xyz.com, it would be like me pointing the DNS for http://www.abc.com to the same IP and wanting WP to serve out the content rather than redirecting to http://www.xyz.com. Historically by adding the defines for WP_HOME and WP_SITEURL to tell WP the site was correct did just that. This latest update breaks that and instead issues the 301 redirect.
Forum: Fixing WordPress
In reply to: 4.5 update broke my sites with 301 redirectsSorry, meant to add, everything works fine, as it used to do, outside the homepage.
So:
http://www.optilead.com/solutions/cart-recovery/
and
http://www.optilead.co.uk/solutions/cart-recovery/
equally serve out their content, with country specific variations, without redirecting.