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.

| improve this question | | | | |

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.

| improve this answer | | | | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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