I've pages with titles like 'Alpha to Beta'.For every such page, there is an inverse page 'Beta to Alpha'. Both pages link to each other.When someone on Google searches for 'Beta to Alpha', I'd like them to land on the correct page, but sometimes 'Alpha to Beta' ranks higher (or vice versa).I was thinking of inspecting the referral link when a visitor arrives on my site, and silently redirecting them to the correct page based on what they actually searched for.Just wondering if this could be penalized by Google as 'cloaking/sneaky redirects'?Or is there a better way to ensure that the correct page on my site ranks higher for the matching query?
Search Engine Query Word Order
seo;google search
See About rel=canonical:A canonical page is the preferred version of a set of pages with highly similar content.Point from what you call inverse page to the what you call correct page via the canonical link.At least for Google this should solve your problem.To the redirect question: As long as you treat searchengine and human visitor all the same there is no problem. Only if you, in simple terms, differentiate.In case the content on these two pages is not the same and can be assumed to be unique or have value in itself (Alpha with Beta means something very different from Beta with Alpha) then leave the navigation to the user and have a link saying something like You are on Alpha with Beta, here is Beta with Alpha.