Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Ok suppose I have some content

My site !! Usefull Info here about grazillas!

in a htm-file, that can be reached with a url that can change at any time, like

url1 : http://www.mysite.com/notfixed.htm?($!abcd)/bs/@id=12

but I have a fixed url that always will be pointing to url1, even if it changes like

url 2 : http://www.mysite.com/redirection.htm?pageId=12

so when I google on 'grazillas' I would like to get


and NOT :


Is this the way google behaves, or is there any way to achieve this? Is this boiling down to indexing permalinks?

share|improve this question
up vote 2 down vote accepted

I can think of a few ways you can achieve this.

1. 301 Redirect

You set up url1 to do a 301 redirect to url2. This would mean that Google goes to url1 and is redirected to url2 and would therefore index url2.

2. Robots.txt

You can use robots.txt to blog Google from indexing the notfixed.htm page. Something like this would work:

User-Agent: *
Disallow: /notfixed.htm

3. Canonical

With Google you can use a special field in the document called canonical which basically tells google that the link it is checking has another version at this page and that Google should favour that page instead of the one it is currently on. You would do this by putting the following on the page url1

<link rel="canonical" href="http://www.mysite.com/redirection.htm?pageId=12" />

For more information on this topic, see this page.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.