I’m using http://urlrewriter.net/ to rewrite urls at my website. For example, I’m rewriting:
to
What I’m trying to do (for SEO purposes) to to dynamically add the meta tag:
<meta name='robots' content='noindex,follow' />
only to the page that hasn’t been rewritten. This is because I want both URLs to work, but only the rewritten one to be indexed by search engines.
How do I determine which version of the page has been requested?
EDIT
Answers below suggest a 301 redirect instead of using a meta tag. Maybe I’ll do this, but I still want to know the answer to the underlying question… how do I know if the page has been rewritten?
personally, I would 301 redirect from the un-rewritten one to the re-written one, and only use the single copy of the page. It is easier for users, and from an SEO perspective, you have 1 copy of the content.