Hi all - I run a large ecommerce website that sells trainers. Due to the CMS that we use, a lot of our URLs are horrible, and there's not a huge amount we can do about. Recently, we've been testing whether we can use canonical tags to force Google to index "vanity" URLs.
Our longform URLs are of the form www.domain.com/trainer_3655_XYZG-4550505-blue. Internal navigation points to these URLs.
We've been testing a scenario whereby we 302 redirect a vanity URL (i.e. www.domain.com/adidas-blue-gazelle-trainer) to the above URL, and then within the actual page, we use a canonical tag that then points back to www.domain.com/adidas-blue-gazelle-trainer.
What this means is that the content of www.domain.com/trainer_3655_XYZG-4550505-blue gets indexed under the URL of www.domain.com/adidas-blue-gazelle-trainer, and the canonical tag passes all link equity to www.domain.com/adidas-blue-gazelle-trainer, so we don't need to worry about changing internal links. www.domain.com/adidas-blue-gazelle-trainer should then start ranking in Google, instead of www.domain.com/trainer_3655_XYZG-4550505-blue.
We've tested this, and the technique works a dream, exactly as we'd hoped.
So my question is, what would Google think of this? Back in the day, 302 redirects from vanity URLs to complex URLs used to be quite common, but that was long before canonical tags. Do you think Google would mind us doing this? Do you think Google would mind us doing this at scale? It would save us a ton of work (migrating to a new CMS etc...), and ultimately the end effect is the same. I don't think we're doing anything wrong, but I'm keen to understand if Google would think any differently?