WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. 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

By default, Wordrpess sites have at least 2 URLs that can be used to reach the home page:


Both these URLs point to the same page, the default "hello world" post that WordPress creates.

How can theme developer's specify a canoninical url meta tag to suggest to search agents which URL it should index in the above example?

In your answer, please include an example for each choice: one in which site.com is preferred and one in which site.com/hello-world is preferred.

share|improve this question
up vote 1 down vote accepted

You might probably want to install Canonical URL’s for WordPress (Wordpress Plugin). It allows you to specify a canonical URL for each post and page. So you can configure the way you want.

The plugin is not big, you probably can integrate the functionality easily into your theme then.

share|improve this answer
thanks for the pointer. I'll check out the plugin. – Scott B Nov 23 '10 at 15:33

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.