I have a use case where users should be redirected but bots and open graph should not be. While I could redirect based on user agent, I was wondering if there were a simpler way, perhaps a protocol which a bot would ignore but a browser would not.
I seem to have a vague recollection of reading of the case where Google indexed a page which included a header with a redirect directive because the page still had content, but I don't know if that would still work or if I am remembering incorrectly.
For clarification, this is roughly the pattern I was contemplating:
Location: /
<html>
<head>
<meta property="og:type" content="website" />
<meta name="twitter:title" property="og:title" itemprop="title name" content="My favorite title" />
<meta name="twitter:description" property="og:description" itemprop="description" content="huzzah for descriptions" />
<meta property="og:url" content="http://example.com"/>
<title>Ducts through the centuries</title>
</head>
<body>
This is the body
</body>
</html>
Is there a way to have Google index the above body while including the redirect header? Will Facebook pickup the open graph tags? What about twitter?