Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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

www.site.com/
www.site.com/hello-world

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.