lat9:
v3.0.9-beta2 is now available on GitHub (https://github.com/lat9/usu/releases/tag/v3.0.9-beta2). This version corrects unwanted 302 redirects on missing/invalid link parameters as well as the staging required to ensure that the USU cache isn't regenerated after admin-level modifications.
Please review the comments present in this (https://github.com/lat9/usu/issues/42) GitHub issue, which identify how the USU storefront handling has been modified.
Have updated to the beta on my ZC version 1.5.6c and can confirm points 1-3 (in the github notes) are correct. Without the commented out section in /includes/init_includes/init_sanitize.php it returns a 302 => 404 redirect (which google seems to dislike but seems to be the standard way zen deals with it). With the "recheck redirect" line commented out (line 140 of /includes/init_includes/init_sanitize.php in ZC 1.5.6c) it returns a straight 404 which google prefers.
I'll stick with the core file comment in /includes/init_includes/init_sanitize.php unless it can be done more elegantly within the USU plugin to override the standard ZC function.
Thank you so much for all the hard work with this lat9. It really is appreciated.
For those interested, I dug a little deeper into my own usage. I can see from my own investigation that on my old zencart which was a 1.5.1 version last updated in 2013, we used a much older version of this plugin and from my backup of the site i can see that the google_analytics.php file in templates has a date stamp in the code of
+----------------------------------------------------------------------+
| Ultimate SEO URLs For Zen Cart, version 2.212 |
+----------------------------------------------------------------------+
| |
| Derrived from Ultimate SEO URLs v2.1 for osCommerce by Chemo |
| |
| Portions Copyright 2011-2012, Andrew Ballanger |
I started to move over from ZC 1.5.1 to 1.5.6c early in 202, but we only made the switch at the tail end of 2020 due to a lot of modifications & getting plugins/templates to play nicely with php 7. In early january over on Google Search Console, we had 212 pages linked from external sites which returned a 404. These would be old/deleted products as the site has been active since 2005. By last week, only 12 of those pages where still marked as 404, with the rest showing redirect loop errors. I can only assume that this bug has been present for a while, but wasn't a factor on the really old ZC/Plugin we had been using. I've been noticing a lot of weird crawler complaints & google relying more on canonical URLS than 301's so hopefully this will help other users with their stores & SEO. Also, google seems to give a bit of wiggle room & will check a resource a few times before changing it's status (I guess to account for short downtimes and other factors).