[wp-hackers] canonical not enforced

Nathaniel Taintor goldenapplesdesign at gmail.com
Fri Mar 2 16:24:14 UTC 2012

"Canonical" links are a different thing from url redirection, and they're
not meant to be used for that. The purpose of the canonical links is to
inform search engine who find the page http://unfoc.us/?p=4116 that it
should be indexed as http://unfocus.com/?p=4116 , and that the two URLs
refer to the same content.

WordPress's permalinks are based off of the "Site URL" option which is set
in "Settings > General", and since you have that option set to
http://unfocus.com/, <http://unfocus.com/?p=4116> you can see that even if
you browse to the site through the unfoc.us domain, any of the links on the
site will resolve to unfocus.com links.

If you want visitors reaching the site through unfoc.us to automatically be
redirected to the corresponding url under unfocus.com, you will have to add
this as a rule in your .htaccess - its not something WordPress handles by

Hope this helps,
Nathaniel Taintor

On Fri, Mar 2, 2012 at 10:57 AM, Kevin Newman <CaptainN at unfocus.com> wrote:

> Hi,
> I recently added a url redirect to my site (unfoc.us for www.unfocus.com).
> www.unfocus.com is the canonical - and if I put vanilla unfocus.com the
> normal cononical enforcement works. For some reason unfoc.us does not get
> properly redirected to to the canonical url - not even if I use a shortlink
> (I have permalinks enabled).
> So this works correctly:
> http://unfocus.com/?p=4116
> But this does not:
> http://unfoc.us/?p=4116
> Is this a bug in core? Or have I just set something up incorrectly?
> Kevin N.
> ______________________________**_________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.**com <wp-hackers at lists.automattic.com>
> http://lists.automattic.com/**mailman/listinfo/wp-hackers<http://lists.automattic.com/mailman/listinfo/wp-hackers>

More information about the wp-hackers mailing list