Mark on WordPress

WordPress puts food on my table.

WordPress 2.3: Canonical URLs

with 245 comments

Canonical URLs is one of the features that I worked on for WordPress 2.3 It’s sort of a geeky concept, but the end result has benefits that a non-geek can appreciate, so I’m going to break it down for you.

WordPress has traditionally been very lenient in the URLs that it will accept.

For instance, say your blog is hosted on http://www.example.com/blog/.

You can likely access the front page of your blog via these alternative URLs:

  • http://example.com/blog/
  • http://www.example.com/blog/index.php/
  • http://example.com/blog/index.php/
  • http://www.example.com/blog/?paged=1
  • http://example.com/blog/?paged=1
  • http://www.example.com/blog/page/1/
  • http://example.com/blog/page/1/

And those are just the “sane” ones. Try this one on for size:

  • http://www.example.com/index.php/////page/1///////?paged=1

That’s the front page. We have additional issues for other views. For example, consider if you are using “fancy” permalinks and have a post up at http://www.example.com/blog/2007/09/17/dont-tase-me-bro/ with a post ID of 17. The following alternative URLs will work:

  • http://www.example.com/blog/2007/09/17/dont-tase-me-bro
  • http://example.com/blog/2007/09/17/dont-tase-me-bro/
  • http://example.com/blog/2007/09/17/dont-tase-me-bro
  • http://www.example.com/blog/index.php/2007/09/17/dont-tase-me-bro/
  • http://www.example.com/blog/index.php/2007/09/17/dont-tase-me-bro
  • http://example.com/blog/index.php/2007/09/17/dont-tase-me-bro/
  • http://example.com/blog/index.php/2007/09/17/dont-tase-me-bro
  • http://www.example.com/blog/?p=17
  • http://example.com/blog/?p=17
  • http://www.example.com/blog/index.php?p=17
  • http://example.com/blog/index.php?p=17

The following issues comprise the majority of incorrect alternative WordPress URLs.

  • Old URL structure when using “fancy” permalinks
  • <www.example.com vs. example.com
  • “Fancy” permalinks with /index.php/ (called “PATH_INFO permalinks”) vs “fancy” permalinks without (”mod_rewrite permalinks”)
  • URLs with trailing slashes vs. URLs without trailing slashes
  • /page/1/ (always redundant)
  • ?paged=4 vs. /page/4/

So, what’s the problem with this? The URLs are all showing the exact same content, so why should it matter? Well, search engines can’t assume that all of these alternative URLs represent the same resource. So they don’t automatically get condensed into a single resource. As a result, you can actually end up competing against yourself in search engine rankings. So to avoid confusing search engines and to consolidate your rankings for your content, there should only be one URL for a resource. We call this URL the canonical URL. Canonical means “standard” or “authoritative.” It’s the one that WordPress generates, and it’s the one that you want everyone to use.

Since version 2.2, WordPress-generated rules have been very well standardized. I personally invested a lot of time making sure things like trailing slashes were consistently standardized. So that’s one piece of the puzzle — making sure that WordPress isn’t working against you by generating non-canonical URLs. But of course, you can’t control who links to you, and third parties can make errors when typing or copy-pasting your URLs. This canonical URL degeneration has a way of propogating. That is, Site A links to your site using a non-canonical URL. Then Site B see’s Site A’s link, and copy-pastes it into their blog. If you allow a non-canonical URL to stay in the address bar, people will use it. That usage is detrimental to your search engine ranking, and damages the web of links that makes up the Web. By redirecting to the canonical URL, we can help stop these errors from propagating, and at least generate 301 redirects for the errors that people may make when linking to your blog.

My goal for WordPress 2.3 was to cover the majority of canonical URL issues that people have and make WordPress automatically redirect those requests to the correct (canonical) URL for that resource. Early tries at this functionality had issues with being too aggressive. I rewrote the functionality multiple times, until I settled upon the current incarnation. I’m quite happy with it.

Ideally, you shouldn’t even be aware of the feature. You might have issues, however, if you have enabled your own form of canonical URL redirection that isn’t redirecting the the URLs that WordPress thinks are the canonical version. For instance, if your blog is http://www.example.com/blog/ but you have a line in your .htaccess that redirects people to http://example.com/blog/, you’re not going to be able to access your site, as the two redirects will “fight” each other in an infinite loop until the browser gives up. You’ll also have issues if your server is generating a non-standard $_SERVER['REQUEST_URI'] value. For this reason, the feature has been disabled for IIS. WordPress can set a correct $_SERVER['REQUEST_URI'] for some IIS incarnations, but fails on others. This is an issue that I hope we’re able to fix in the future. That said, the vast majority of WordPress blogs are not running on IIS, so you’ll likely be fine.

If you’re having issues with infinite redirects, please open a ticket. And in the meantime, you can use this one-line plugin to disable the feature.

Written by Mark Jaquith

September 25, 2007 at 1:02 am

245 Responses

Subscribe to comments with RSS.

  1. Cool stuff. Your work will be appreciated on my blog. As soon as I finish catching up on post-vacation news, and install 2.3 :)

    Daniel Jalkut

    September 25, 2007 at 1:27 am

  2. [...] Mejor tratamiento de las URLS, dependiendo de la configuración de los permalinks ahora WordPress revisará si la URL termina en / o incluso si está incompleta WordPress buscará el post que más se le parezca, si lo hay. Mark ha explicado mejor el tema de las URLs canónicas en WordPress 2.3 [...]

  3. [...] We’ve cleaned up URLs a bunch in a feature we call canonical URLs which does things like enforce your no-www preference, redirect posts with changed slugs so a link never goes bad, redirect URLs that get cut off in emails on similar to the correct post, and much more. This helps your users, and it also helps your search engine optimization, as search engines like for each page to be available in one canonical location. More info here. [...]

  4. [...] We’ve cleaned up URLs a bunch in a feature we call canonical URLs which does things like enforce your no-www preference, redirect posts with changed slugs so a link never goes bad, redirect URLs that get cut off in emails on similar to the correct post, and much more. This helps your users, and it also helps your search engine optimization, as search engines like for each page to be available in one canonical location. More info here. [...]

  5. [...] We’ve cleaned up URLs a bunch in a feature we call canonical URLs which does things like enforce your no-www preference, redirect posts with changed slugs so a link never goes bad, redirect URLs that get cut off in emails on similar to the correct post, and much more. This helps your users, and it also helps your search engine optimization, as search engines like for each page to be available in one canonical location. More info here. [...]

  6. [...] We’ve cleaned up URLs a bunch in a feature we call canonical URLs which does things like enforce your no-www preference, redirect posts with changed slugs so a link never goes bad, redirect URLs that get cut off in emails on similar to the correct post, and much more. This helps your users, and it also helps your search engine optimization, as search engines like for each page to be available in one canonical location. More info here. [...]

  7. [...] url-оптимізація і “розумне” перенаправлення. [...]

    minus-one » Wordpress 2.3

    September 25, 2007 at 11:35 am

  8. [...] We’ve cleaned up URLs a bunch in a feature we call canonical URLs which does things like enforce your no-www preference, redirect posts with changed slugs so a link never goes bad, redirect URLs that get cut off in emails on similar to the correct post, and much more. This helps your users, and it also helps your search engine optimization, as search engines like for each page to be available in one canonical location. More info here. [...]

  9. [...] We’ve cleaned up URLs a bunch in a feature we call canonical URLs which does things like enforce your no-www preference, redirect posts with changed slugs so a link never goes bad, redirect URLs that get cut off in emails on similar to the correct post, and much more. This helps your users, and it also helps your search engine optimization, as search engines like for each page to be available in one canonical location. More info here. [...]

  10. if your blog is http://www.example.com/blog/ but you have a line in your .htaccess that redirects people to http://example.com/blog/, you’re not going to be able to access your site, as the two redirects will “fight” each other in an infinite loop until the browser gives up.

    This used to be the case in Beta, but not in 2.3 official release.

    Michael

    September 25, 2007 at 1:19 pm

  11. [...] We’ve cleaned up URLs a bunch in a feature we call canonical URLs which does things like enforce your no-www preference, redirect posts with changed slugs so a link never goes bad, redirect URLs that get cut off in emails on similar to the correct post, and much more. This helps your users, and it also helps your search engine optimization, as search engines like for each page to be available in one canonical location. More info here. [...]

    Dexter for Wordpress 2.3

    September 25, 2007 at 1:52 pm

  12. [...] quem é muito “geek” segundo os próprios desenvolvedores, pois eu nunca vou estudar a coisa toda a ponto de usar [...]

  13. Ah, finally, a way to force people to drop the ‘www.’ in the URL. For the sake of consistent cookie-ing, at the very least. Much ta :)

    mg

    September 25, 2007 at 2:39 pm

  14. [...] It enforce your no-www preference and it redirect posts with changed slugs the new post so say goodbye to "page not found error". And this makes your blog search engine friendly. [...]

  15. Trust me, Michael — you don’t want an .htaccess rule that counteracts WordPress redirects. Neither rule is aware of the other, and they will bounce the user back and forth between them until the browser gives up.

    Mark Jaquith

    September 25, 2007 at 3:08 pm

  16. Great work, “one small step for seo, one giant leap for wpkind” :-)
    thanks

    soverato

    September 25, 2007 at 3:48 pm

  17. [...] We’ve cleaned up URLs a bunch in a feature we call canonical URLs which does things like enforce your no-www preference, redirect posts with changed slugs so a link never goes bad, redirect URLs that get cut off in emails on similar to the correct post, and much more. This helps your users, and it also helps your search engine optimization, as search engines like for each page to be available in one canonical location. More info here. [...]

  18. Fascinating stuff :) Geeks make the world a better place :)

    Irving

    September 25, 2007 at 4:08 pm

  19. [...] WordPress 2.3: Canonical URLs « Mark on WordPress «Ideally, you shouldn’t even be aware of the feature. You might have issues, however, if you have enabled your own form of canonical URL redirection that isn’t redirecting the the URLs that WordPress thinks are the canonical version.» (tags: wordpress blog canonical canonical.php 2.3) [...]

  20. [...] We’ve cleaned up URLs a bunch in a feature we call canonical URLs which does things like enforce your no-www preference, redirect posts with changed slugs so a link never goes bad, redirect URLs that get cut off in emails on similar to the correct post, and much more. This helps your users, and it also helps your search engine optimization, as search engines like for each page to be available in one canonical location. More info here. [...]

  21. [...] optimization, as search engines like for each page to be available in one canonical location. More info here. 4. Their new pending review feature will be great for multi-author blogs. It allows authors to [...]

  22. [...] WordPress was released last night. New features include support for tagging, update notification, Canonical URLs, pending review for multi-author blogs and a new advanced WYSIWYG. Here’s more information on [...]

  23. [...] Canonical URLs – will allow you to change slugs of any post and have WordPress automatically redirect old slug URL to the new URL of your post. Brilliant idea, great for SEO! Mark Jaquith has a great post explaining how it all works: Canonical URLs in WordPress 2.3 [...]

  24. [...] We’ve cleaned up URLs a bunch in a feature we call canonical URLs which does things like enforce your no-www preference, redirect posts with changed slugs so a link never goes bad, redirect URLs that get cut off in emails on similar to the correct post, and much more. This helps your users, and it also helps your search engine optimization, as search engines like for each page to be available in one canonical location. More info here. [...]

  25. nice…..

    Chuck

    September 25, 2007 at 7:32 pm

  26. [...] version 2.2.3 but it’s finally on. The problems I had were caused by one of the new features: canonical URLs. Basically, what it does is to make sure that no matter how you access certain content you’ll [...]

  27. [...] We’ve cleaned up URLs a bunch in a feature we call canonical URLs which does things like enforce your no-www preference, redirect posts with changed slugs so a link never goes bad, redirect URLs that get cut off in emails on similar to the correct post, and much more. This helps your users, and it also helps your search engine optimization, as search engines like for each page to be available in one canonical location. More info here. [...]

  28. [...] WordPress 2.3 gained a Canonical Url feature. This doesn’t affect the method I used to change the Page Permalinks, but it does redirect [...]

  29. I’m rewriting my Page permalinks using the ‘page_link’ filter, so they appear on a different domain.

    If is_page(), filtering ‘option_home’ lets me change the Page permalinks your code generates, so they match the ones I craft via ‘page_link’, thus enforcing my desired canonically.

    Nice stuff Mark!

    Alan J Castonguay

    September 25, 2007 at 10:16 pm

  30. Amazing change in the way urls are handled!
    way to go WP

    Tarek

    September 25, 2007 at 11:25 pm

  31. Ok, I think I may be in trouble…

    My website is http://germworks.net/blog/ (were the blog is located) however I have a www direct plugin which directs people to http://germworks.net incase they type in the www. Is this ok???

    Jermayn Parker

    September 26, 2007 at 12:19 am

  32. [...] one of the lead developers, explained it in detail on his blog in a post titled simply enough, WordPress 2.3: Canonical URLs. I do like this, since it can only help me in the search engine wars. And since I can deactivate a [...]

  33. [...] We’ve cleaned up URLs a bunch in a feature we call canonical URLs which does things like enforce your no-www preference, redirect posts with changed slugs so a link never goes bad, redirect URLs that get cut off in emails on similar to the correct post, and much more. This helps your users, and it also helps your search engine optimization, as search engines like for each page to be available in one canonical location. More info here. [...]

  34. [...] We’ve cleaned up URLs a bunch in a feature we call canonical URLs which does things like enforce your no-www preference, redirect posts with changed slugs so a link never goes bad, redirect URLs that get cut off in emails on similar to the correct post, and much more. This helps your users, and it also helps your search engine optimization, as search engines like for each page to be available in one canonical location. More info here. [...]

  35. [...] Management – Pending Review – Advanced Visual Editor Buttons – Pretty URLs, WWW / no-WWW see also WordPress 2.3: Canonical URLs – Cleaning up of bad URLs – Updated Default Blogroll – Full and complete Atom 1.0 support, [...]

    Rxbbx Blog WordPress 2.3

    September 26, 2007 at 3:46 am

  36. [...] We’ve cleaned up URLs a bunch in a feature we call canonical URLs which does things like enforce your no-www preference, redirect posts with changed slugs so a link never goes bad, redirect URLs that get cut off in emails on similar to the correct post, and much more. This helps your users, and it also helps your search engine optimization, as search engines like for each page to be available in one canonical location. More info here. [...]

  37. [...] We’ve cleaned up URLs a bunch in a feature we call canonical URLs which does things like enforce your no-www preference, redirect posts with changed slugs so a link never goes bad, redirect URLs that get cut off in emails on similar to the correct post, and much more. This helps your users, and it also helps your search engine optimization, as search engines like for each page to be available in one canonical location. More info here. [...]

  38. [...] 3. Conical URLs. That means that you can choose to enforce non-www or www preferences, redirect changed slug posts (bye 404). This is a excellent feature, it will improve blogs SEO rankings by a bundle. You can read more about conical URLs here. [...]

  39. http://www.example.com/blog/index.php/2007/09/17/dont-tase-me-bro/
    Wow, it seems like an Expression Engine URL’s style to me. Quite tricky, but I appreciatively it great.

    AM Putra

    September 26, 2007 at 7:14 am

  40. [...] We’ve cleaned up URLs a bunch in a feature we call canonical URLs which does things like enforce your no-www preference, redirect posts with changed slugs so a link never goes bad, redirect URLs that get cut off in emails on similar to the correct post, and much more. This helps your users, and it also helps your search engine optimization, as search engines like for each page to be available in one canonical location. More info here. [...]

  41. [...] Canonical URLs ทำให้รองรับรูปแบบของ URL ที่ยืดหยุ่นมากขึ้น (อ่านรายละเอียดเพิ่มเติม) [...]

  42. [...] Canonical URLs Great New Features in WordPress 2.3 10 Things You Need to Know About WordPress [...]

  43. [...] Canonical URLs in WordPress 2.3 [...]

  44. I’ve never truly understood the difference between using the www. and not using it,.. some places it doesn’t matter some places it does,… you are trying to break it down , thank you, it still sounds like technospeak,…lol

    edtajchman

    September 26, 2007 at 4:45 pm

  45. Trust me, Michael — you don’t want an .htaccess rule that counteracts WordPress redirects. Neither rule is aware of the other, and they will bounce the user back and forth between them until the browser gives up.

    Mark, I just found out why wordpress didn’t bounce me back and forth even if I have rewrite rules to remove www prefix from my domain. I put the codes in server config instead of .htaccess. I guess that’s the reason.

    Michael

    September 26, 2007 at 5:17 pm

  46. [...] ADDING: Beware of WordPress 2.3’s new Canonical URL feature. It’s a great feature, long overdue, but if you have redirects in .htaccess, you can possibly create a redirect loop. Lots of info on this feature can be found at Mark on WordPress. [...]

  47. [...] We’ve cleaned up URLs a bunch in a feature we call canonical URLs which does things like enforce your no-www preference, redirect posts with changed slugs so a link never goes bad, redirect URLs that get cut off in emails on similar to the correct post, and much more. This helps your users, and it also helps your search engine optimization, as search engines like for each page to be available in one canonical location. More info here. [...]

  48. [...] WordPress 2.3: Canonical URLs « Mark on WordPress ahhh, so this is what Canonical URLs mean… [...]

  49. [...] We’ve cleaned up URLs a bunch in a feature we call canonical URLs which does things like enforce your no-www preference, redirect posts with changed slugs so a link never goes bad, redirect URLs that get cut off in emails on similar to the correct post, and much more. This helps your users, and it also helps your search engine optimization, as search engines like for each page to be available in one canonical location. More info here. [...]

  50. [...] URI’s are issues of the past now that WP 2.3 has been released, Mark Jaquith has presented an article about WP URI’s that could access your site, and WP 2.3 has eliminated them. Hopefully all [...]

  51. [...] It freaks me out how fast memes propogate through the internets. When learning about the new features in WordPress 2.3 I stumbled upon an entirely unexpected DTMB reference here. [...]

  52. [...] WordPress 2.3: Canonical URLs « Mark on WordPress : My goal for WordPress 2.3 was to cover the majority of canonical URL issues that people have and make WordPress automatically redirect those requests to the correct (canonical) URL for that resource. Early tries at this functionality had issues with being too aggressive. I rewrote the functionality multiple times, until I settled upon the current incarnation. I’m quite happy with it. [...]

  53. [...] To find out more about Canonical URLs i suggest a reading of Mark’s Blog. [...]

  54. [...] WordPress 2.3: Canonical URLs « Mark on WordPress A detailed explanation of the WordPress 2.3 implementation of resolving to a single canonical URL. (tags: wordpress seo url blogging) [...]

  55. [...] WordPress has finally helped out with search engine optimization by including a feature called canonical URLs which allows users to enforce preferences such as no www URLs.  This feature will also allow [...]

  56. [...] We’ve cleaned up URLs a bunch in a feature we call canonical URLs which does things like enforce your no-www preference, redirect posts with changed slugs so a link never goes bad, redirect URLs that get cut off in emails on similar to the correct post, and much more. This helps your users, and it also helps your search engine optimization, as search engines like for each page to be available in one canonical location. More info here. [...]

  57. oh Mark.
    how i thank you for this. thank you!

    Jack

    September 28, 2007 at 3:28 am

  58. [...] man nun mit der neuesten WP-Version abzustellen. Mark Jaquith erklärt als Mitentwickler, was es damit auf sich hat und wie man es umgestellt hat. Er muss es wissen, hat er die Prozedur doch selbst [...]

  59. Does this make the enforce-www-preference plugin redundant?

    Sam

    September 28, 2007 at 8:05 am

  60. What’s with two different WP-Installation under the same domain? I had the problem where a new 2.3 installation (23.domain.tld) “overwrote” an old 2.2 installation (domain.tld).

    Martin Hiegl

    September 28, 2007 at 8:45 am

  61. not bad at all…will experiment with it

    resist

    September 28, 2007 at 9:12 am

  62. [...] pm by propaganda press in WordPress Canonical URLs is one of the features that I worked on for WordPress 2.3 It’s sort of a geeky concept, but the [...]

  63. [...] ausführlicher wird das Problem von Mark im WordPress-Blog erklärt. Er muss es wissen, denn dieses Modul in WordPress stammt von ihm. Hat Dir der [...]

  64. [...] here, where many had linked to it, to over here, where people have also linked to it. Can you say canonical links? I’ll hopefully be able to upgrade to WordPress 2.3 in due course. For now, if you are a [...]

  65. Nice Site!

    grzzap

    September 28, 2007 at 1:26 pm

  66. [...] to Mark Jaquith, an official contributing developer to the WordPress project: My goal for WordPress 2.3 was to [...]

  67. [...] man sich dagegen wehren kann, weis der Nachtwächter. Weitere Probleme habe ich mit den neuen Canonical URL Redirects die hinter einem Loadbalancer zu endlos-Redirects führten. Mit dem offiziellem Plugin zum [...]

  68. [...] Canonical URLs – They have cleaned up URLs a bunch in a feature we call canonical URLs which does things like enforce your no-www preference, redirect posts with changed slugs so a link never goes bad, redirect URLs that get cut off in emails on similar to the correct post, and much more. This helps your users, and it also helps your search engine optimization, as search engines like for each page to be available in one canonical location. More info here. [...]

  69. [...] Ser vi på det rent SEO-mæssigt, er der også sket ændringer hvad angår url-håndteringen. Der sørges nu for at urls med og uden www lander samme sted (har tidligere kunnet opnåes med plugin’et no-www.), så man undgår duplicate content ved at have to url-adresser der peger på samme indhold. Læs mere på siden for faciliteten “kanoniske urls“. [...]

  70. [...] If you want to know more about what is Canonical Urls, especially on wordpress. there is no where else better then on Mark page it self. go read it here. [...]

  71. My current host interfere’s with my permalinks, will 2.3 help with that?

    I have http://example.com/index.php/117/postname.html as the permalinks and they get a 404 unless you visit the hompage first. They won’t say what they are doing that is blocking them only that permalinks won’t work right on their server.

    damnprinter

    September 29, 2007 at 7:47 am

  72. Well I found out that wordpress 2.3 won’t fox permalinks on a webhost that interferes with them.

    damnprinter

    September 29, 2007 at 8:34 am

  73. Cool! I was actually looking at adding something to my .htaccess when 2.3 was released because of issues with AJAX and having the leading www (vs not having). Works great!

    copperleaf

    September 29, 2007 at 11:23 am

  74. Thank you.

    imagiscape

    September 30, 2007 at 12:42 pm

  75. Oh man, you really helped me out! I was frustatedly sitting in front of my computer wondering why things doesn’t work as usual after I upgraded to version 2.3.

    Thank you very much, very useful plugin!

    Greetings from Germany

    Daniel

    September 30, 2007 at 1:25 pm

  76. Dj Aldo

    September 30, 2007 at 2:44 pm

  77. I love you, this is just lovely. I mean it’s just pure loveliness. It’s this kind of polish that make all the alternatives to WordPress pale into miserable insignificance.

    Mark Kenny

    September 30, 2007 at 5:42 pm

  78. [...] Jaquith of Mark on WordPress discusses WordPress 2.3 Canonical URLs and the problems they may [...]

  79. Does this make the enforce-www-preference plugin redundant?

    Yes. It incorporates that functionality.

    Mark Jaquith

    October 1, 2007 at 1:40 pm

  80. Thanks for the plugin. Fixes a problem with Yahoo hosted sites.

    More details here: http://wordpress.org/support/topic/135725?replies=5

    Wayne

    October 1, 2007 at 4:01 pm

  81. [...] from the tidying up of URLs used to access posts, Canonical URLs. The author of these changes Mark Jaquith blogs the background to these changes and makes a good case for them. The first problem is that http://www.motiveauto.com/page/1 is no longer a [...]

  82. Awesome stuff this. Thanks!

    Colin Helvensteijn

    October 2, 2007 at 4:34 am

  83. [...] We’ve cleaned up URLs a bunch in a feature we call canonical URLs which does things like enforce your no-www preference, redirect posts with changed slugs so a link never goes bad, redirect URLs that get cut off in emails on similar to the correct post, and much more. This helps your users, and it also helps your search engine optimization, as search engines like for each page to be available in one canonical location. More info here. [...]

  84. [...] Canonical URLs are also supported in WordPress 2.3 – a significant improvement. [...]

  85. These built in redirects…are they supposed to be 302 redirects?
    And if so, is there anyway to change them to be 301 redirects?

    Rehan Asif

    October 3, 2007 at 2:46 pm

  86. [...] There is now the update to WordPress 2.3 avaiable. For me the most interesting new things are canonical URLs, update notification of new releases of WordPress or of plugins that are used and native tagging [...]

  87. [...] We’ve cleaned up URLs a bunch in a feature we call canonical URLs which does things like enforce your no-www preference, redirect posts with changed slugs so a link never goes bad, redirect URLs that get cut off in emails on similar to the correct post, and much more. This helps your users, and it also helps your search engine optimization, as search engines like for each page to be available in one canonical location. More info here. [...]

    New Underpinnings

    October 4, 2007 at 11:31 am

  88. [...] I’ve been playing around with Habari, and so far I’ve tested the install on three different machines. One of Habari’s requirements is Apache’s mod_rewrite, which allows URLs from a client to be rewritten on the server. This means that a browser can request a pretty URL, such as http://www.example.com/habari/really-interesting-post and it will be redirected on the server to a script that returns the post with the slug really-interesting-post. Mark Jaquith has written a good article about this in relation to WordPress. [...]

  89. I’m not sure if this is the cause of my problem. I had set up a subdomain earthcomm.mysciencespace.com and pointed it to mysciencespace.com/wordpress As soon as I up graded to 2.3 the subdomain redirected to the root domain instead of the wordpress directory.

    What can I do to fix this?

    Roger

    October 4, 2007 at 10:44 pm

  90. [...] URL Canoniche sono supportate in questa [...]

  91. Thank you very much for sharing…
    This is nice article for sharing to other netter…

    http://www.puthzel.com
    Thanks…

    Puthzel.com

    October 5, 2007 at 5:48 am

  92. [...] mit http://www.irgend.wo, so wird ein Aufruf von irgend.wo automatisch auf http://www.irgend.wo umgeleitet. Unter WordPress 2.3: Canonical URLs werden Details und weitere Features [...]

  93. [...] 「標準URL(カノニカルURL)」と名付けたシステムにて、URLまわりをすっきりさせました。これにより、WWW がドメイン名の頭につかないよう強制的に変更したり、記事スラッグが変更された記事の古いURLをリダイレクトしてリンク切れをなくすようにしたり、メール内の途中で途切れたURLを、似たURLへリダイレクトしたりするなどの機能が追加されました。これらの機能は、ユーザーが迷ってしまうことを防ぐだけでけではなく、各記事に「標準URL」を割り当てることにより、検索エンジン最適化にも役立ちます。さらに詳しい情報は、こちらにて。 [...]

  94. Wow, this is purely awesome, great work. This is something that should be more prominently featured and announced by WordPress, as it may dramatically mess with people who had modded .htaccess and were getting infinite loops, being forced to use default to old url structure and losing incoming links in the process.

    Wakefield

    October 7, 2007 at 7:36 am

  95. [...] – Preparing for 2.3 WordPress 2.3 WordPress 2.3: Canonical URLs Upgrading to WordPress 2.3 Dexter Enhancing WordPress [...]

  96. Mark or someone, should I delete this in my .htaccess file before I upgrade.

    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^example\.org$ [NC]
    RewriteRule ^(.*)$ http://www.example.org/$1 [R=301,L]

    Let me know.

    cyclepromo

    October 9, 2007 at 12:54 am

  97. [...] We鈥檝e cleaned up URLs a bunch in a feature we call canonical URLs which does things like enforce your no-www preference, redirect posts with changed slugs so a link never goes bad, redirect URLs that get cut off in emails on similar to the correct post, and much more. This helps your users, and it also helps your search engine optimization, as search engines like for each page to be available in one canonical location. More info here. [...]

    WordPress 2.3

    October 10, 2007 at 1:55 am

  98. [...] you’ve installed Mark’s plugin to disable canonical urls, deactivate it. This has been rolled into my plugin as [...]

  99. [...] Enforce www. Preference I dropped the www NOTE: This plugin is now redundant with 2.3. [...]

  100. In earlier versions of WordPress, I used the Permalink Redirect plug-in (http://fucoder.com/code/permalink-redirect/). While the new WordPress feature makes this plug-in mostly obsolete, there’s one feature of Permalink Redirect that doesn’t seem to have made it to 2.3.

    Specifically, you could enter your Old Permalink Structure, and have Permalink Redirect handle the situation where you had changed your permalink structure, i.e., pretty URLs from both the _old_ and the _new_ permalink structures would work.

    (Yes, I know. “Don’t do that. ;-) ” But I needed to change the structure. Now I need to make sure the old links still work.)

    More pressingly (for me), this feature of Permalink Redirect no longer works, probably because the way permalinks are built/handled has changed. Is there a new WordPress 2.3-friendly way to preserve an old permalink structure?

    Alderete

    October 16, 2007 at 11:49 pm

  101. [...] a little bit of SEO. WordPress 2.3 is actually more SEO-friendly as it has a more robust system in canonicalizing URLs. The core code definitely has a lot to offer and being released in GPL is certainly deserving of a [...]

    Gormful » Life After

    October 17, 2007 at 1:36 pm

  102. Hey Mark,

    This is no doubt a great idea, but it kills the ability to make complex queries that skip permalinks. So while I usually want my category url to look like:

    site.com/~/general/

    I use a plugin to generate archive urls like:

    site.com/?cat=2&m=200710

    When I go to the second url it forwards me to the first and doesn’t filter it at all for dates.

    If I give the normal pretty url for a category and append the m=200710 to it just forgets the category entirely and takes me to the month page.

    I imagine similar problems with other variables passed in queries.

    Is there a way to avoid this breaking while still using permalinks for normal pages?

    It seems like you’d need either to add in exceptions for times when there are multiple variables being passed in the non-pretty method, or else make sure that all sane combinations of variables can be passed using complex pretty-urls like

    site.com/~/general/2007/10

    That one of course doesn’t work. Do you know a method to get categories and dates to coexist in a pretty url? Otherwise do you think that one or the other of my solutions is viable? We’ll have to turn off the filter for now, but i’d be happy to keep the other features without breaking multiple url variables.

    jeremyclarke

    October 17, 2007 at 8:12 pm

  103. I was useful very much.
    Thank you

    Relax

    October 20, 2007 at 4:17 pm

  104. [...] В админке во вкладке Options – General проверяю Blog address (URL). Я придерживаюсь философии no-www, поэтому проверяю, чтобы в данном поле был введен адрес без www. Если речь идет о простом сайте или скрипте WordPress ниже версии 2.3, то я вручную в .htaccess прописываю 301-й редирект на адрес без www. С версии 2.3 WordPress отлично канонизирует все адреса. [...]

  105. [...] We’ve cleaned up URLs a bunch in a feature we call canonical URLs which does things like enforce your no-www preference, redirect posts with changed slugs so a link never goes bad, redirect URLs that get cut off in emails on similar to the correct post, and much more. This helps your users, and it also helps your search engine optimization, as search engines like for each page to be available in one canonical location. More info here. [...]

  106. [...] Canonical URLs [...]

  107. [...] WordPress 2.3: Canonical URLs [...]

  108. [...] We’ve cleaned up URLs a bunch in a feature we call canonical URLs which does things like enforce your no-www preference, redirect posts with changed slugs so a link never goes bad, redirect URLs that get cut off in emails on similar to the correct post, and much more. This helps your users, and it also helps your search engine optimization, as search engines like for each page to be available in one canonical location. More info here. [...]

  109. [...] We’ve cleaned up URLs a bunch in a feature we call canonical URLs which does things like enforce your no-www preference, redirect posts with changed slugs so a link never goes bad, redirect URLs that get cut off in emails on similar to the correct post, and much more. This helps your users, and it also helps your search engine optimization, as search engines like for each page to be available in one canonical location. More info here. [...]

  110. good work

    ForumViaggiare

    October 28, 2007 at 3:51 am

  111. [...] problem is due to the canonical redirection functionality, it redirects incorrect permalinks to their correct [...]

  112. [...] We’ve cleaned up URLs a bunch in a feature we call canonical URLs which does things like enforce your no-www preference, redirect posts with changed slugs so a link never goes bad, redirect URLs that get cut off in emails on similar to the correct post, and much more. This helps your users, and it also helps your search engine optimization, as search engines like for each page to be available in one canonical location. More info here. [...]

  113. [...] along with update notifications for WordPress and plugins. Mark Jaquith has a great write up on his canonical URLs [...]

  114. [...] back into the URLs since most of my 404s are trying to get those pages. Weird since I thought canonical URLs were supposed to automatically redirect that stuff. Oh [...]

  115. I have just upgraded to wordpress 2.3.1.

    Mahesh Mohan

    October 31, 2007 at 6:15 pm

  116. We have our site setup http://www.capitaplus.com using a old version of wordpress version 2.o and im afraid of updating because I might mess up the URL stucture. Can you please advice what I should do so i dont loose my search engine rankings? We buy invoices and our current rankings are very important.

    Thanks

    Gary Brooks

    November 7, 2007 at 10:37 pm

  117. Unfortunately I am one of those few WordPress people running WordPress on IIS (I’m using IIS 6).

    I guess this excellent feature is not enabled for me. In which case I’m using the www-redirect plugin (located here: http://www.justinshattuck.com/wordpress-www-redirect-plugin/). Its probably not as robust and all encompassing as what you describe, but it’ll fix some of the basic ones which are most often the issue.

    I know IIS is not the popular choice but I have to use it for business reasons. And i’ve learned quite a few tricks in how to get WordPress working for IIS 6 users.

    If anyone needs help you can email me. You’ll find my email under the “About Ponder Place” section of my site (which is running off IIS6) http://www.ponderplace.com

    Stephen

    November 9, 2007 at 3:44 pm

  118. [...] We’ve cleaned up URLs a bunch in a feature we call canonical URLs which does things like enforce your no-www preference, redirect posts with changed slugs so a link never goes bad, redirect URLs that get cut off in emails on similar to the correct post, and much more. This helps your users, and it also helps your search engine optimization, as search engines like for each page to be available in one canonical location. More info here. [...]

  119. thank you SOOO SOOO MUCH. You need a donate now button or something.

    Thanks again. By the way, your name looks familiar. You’re an ARS guy, right?

    portorikan

    November 12, 2007 at 2:29 pm

  120. I want to say thank you again. I almost want to cry.

    :)

    portorikan

    November 12, 2007 at 2:30 pm

  121. [...] call it like that) can be fixed by disabling the canonical.php in your wp-includes forlder. Go to this page to check for Mark’s [...]

  122. [...] The blog software WordPress is just released in version 2.3. One of the new additions are a feature that can rescue and correct links when users accidentally follow a link in an email broken over 2 lines. Or following an old link that the blog author has renamed. We’ve cleaned up URLs a bunch in a feature we call canonical URLs which does things like enforce your no-www preference, redirect posts with changed slugs so a link never goes bad, redirect URLs that get cut off in emails on similar to the correct post, and much more. This helps your users, and it also helps your search engine optimization, as search engines like for each page to be available in one canonical location. More info here. [...]

  123. Thank you sir, you just saved me a very painful rollback.

    Ruben

    November 19, 2007 at 2:44 am

  124. [...] if you are having any issues with it, the plugin can be found at the bottom of this post on the new canonical redirection. We have submitted a bug to the WordPress trac system, and will be disabling this redirection until [...]

  125. This feature caused me to spend the last three of four hours trying to complete my upgrade to 2.3. I couldn’t get any of my permalinks to work and I couldn’t figure out why, so my whole website was unaccessible unless I changed the style of permalinks I use, thus ruining my traffic from anyone linking in. I almost gave up trying to pursue blogging as a career because this was to difficult for me to figure out. I’m glad there was that disable plugin. I just wish I had it with the upgrade so that I could have saved all the deleting and data loss that ensued. Yeesh. I can appreciate optimization. But when there’s a teeny 0.001% bug, please leave the disable fix in the download with the upgrade or something.

    Stephen Joseph

    November 29, 2007 at 4:41 am

  126. This is a great feature for WP – thanks so much for working on it.

    Alex (Indigo Clothing)

    December 2, 2007 at 7:18 am

  127. [...] con il ramo 2.3 di WordPress è stato inserito il supporto nativo al tagging, è stato sistemato il “problemino” degli URL (per il quale usavo il plugin Permalink Redirect), c’è un sistema di notifica per gli [...]

  128. Great stuff dude…:)

    Manish Chauhan

    December 5, 2007 at 1:06 am

  129. Its really nice n informative article with a basic understanding of Canonical Optimization.Thanks buddy..:)

    Manish Chauhan

    December 5, 2007 at 1:08 am

  130. Mind blowing article……….:)

    Manish Chauhan

    December 5, 2007 at 1:09 am

  131. jagksgchjkxZ B BJZBHZKXBZK

    Manish Chauhan

    December 5, 2007 at 1:19 am

  132. This plugin fixes the problem of the redirects, but it screws up my feedburner settings.

    Julio

    December 6, 2007 at 2:53 am

  133. [...] plug-in does not work with wp 2.3.x because of the way the 2.3.x series handles canonical urls. mark has a plug-in that disables this method of handling [...]

  134. [...] Redirect (http://fucoder.com/code/permalink-redirect/) 0.8.1 (No longer necessary; built into core [...]

  135. [...] WP discussion starts at 0:48. For an in-depth look at the canonical URL feature, check out my writeup of the feature. [...]

  136. My host is Yahoo. Does this have to do with the all the problems I am having? I am using the Customizable Permalinks plugin from Yahoo, but when I activate it I cant get to the page the articles. I downloaded the “Disable Canonical URL Redirection” plugin and that fixes the problem. Activating that pluin creates other problems. Like messing up my connection to Feedburner. How can I fix this problem?

    Julio

    December 7, 2007 at 9:35 pm

  137. if you need any thing like software,videos,music,lessons(any sort of lessons,formations)help for computer,any thing we can help you with it , so visit this website and tell us what you need we will find what you looking for thank you this is the link Clic here

    djsito

    December 9, 2007 at 11:23 am

  138. [...] Kanonické URL, o kterých existuje jeden odborný článek, takže se tím nebudu dále [...]

  139. Finally, someone takes this issue seriously!!

    Hurrah!!

    I have been writing about these bugs for about 4 or 5 years. Until now, every forum, blog, cart and CMS system has suffered from these issues.

    It is nice to see it addressed and (as far as initial reports go) mainly fixed. I’ll be running some tests and I’ll file a bug report if I find any major holes still lurking.

    g1smd

    December 10, 2007 at 11:30 am

  140. [...] urls. a trouble ticket has been submitted to yahoo! by a wp user and y! employee and  mark has a post about it and a plug-in to disable the wp 2.3.x [...]

  141. [...] wrote a one-line plugin that works around the problem in a not-ideal solution, but it works. Here’s why the problem exists. I’m realizing that in order to maintain an effective blog, I will [...]

  142. I don’t consider this a “feature”… we’ve been receiving complaints from our web hosting customers for the last two weeks and we have spent countless hours trying to figure out why many blogs stopped working.

    It was all due to this… such altering features are not supposed to be enabled by default. There has to be a transition period with plenty of warnings for about a year or two, then enable it by default.

    Sort of the same way as when the PHP team decided to turn register_globals off…

    Peter

    December 12, 2007 at 6:22 pm

  143. Mark,

    Your plugin fixes the issue of redirects, but kills my feed to feedburner and my BuzzBoost stops working. How can I fix this?

    Thanks!

    Julio

    December 14, 2007 at 6:15 pm

  144. [...] redirects Nå som jeg har flyttet siden og gjort om endel så kommer WordPress sin “Canonical URLs” funksjon til sin fulle [...]

  145. It is very nice to see that someone takes this issue seriously!!

    nowe samochody

    December 26, 2007 at 9:36 am

  146. I can’t open a trac ticket without admin privileges, but we’re having this exact issue — infinite recursion in redirects. I tried adding a functions.php file with the code for the plugin, which works on our development server but not in production.

    How do I get privs to open a trac ticket?

    And I sort of agree with the above poster who said that such changes in upgrade should be better advertised, or at least opt-in for the first revision.

    Kevin Cooke

    December 26, 2007 at 9:33 pm

  147. I’m so glad I finally found this. I was using yahoo’s customizable permalinks plugin, and when I upgraded wordpress my website completely broke down. none of the page links worked. I used the plugin you have listed and it appears to be working now.

    sara

    January 2, 2008 at 3:55 pm

  148. [...] a pretty annoying issue with every single page redirecting to itself. It turned out that this was a feature, not a bug. I deployed the one-line plugin and the infinite loops stopped. This needs to be fixed [...]

  149. Goodness… I spent hours on this issue, but your plugin fixed it in a jiffy! I don’t have .htaccess or anything… and my WP is hosted on a Debian box, so I doubt that it’s running on IIS. So what could have gone wrong and is there a real fix?

    inportb

    January 3, 2008 at 10:36 pm

  150. THANK YOU Mark!

    Paul

    January 4, 2008 at 1:26 pm

  151. I think the duplicate content issue is a lot of hype. You still get in the search engines whether it’s duplicate content or not. The way you differentiate yourself from the pack is using your own text on other pages. As far as competing with yourself I don’t see how that happens the hits/visitors all go to your site so I don’t see that as being possible.

    Site Indexed

    January 5, 2008 at 12:16 am

  152. Thanks so much for this. I finally switched over to using custom permalinks after almost one and a half years of posts and it was a completely painless process.

    Peter

    January 6, 2008 at 11:08 pm

  153. that’s right – no “www” on that url :)

    Thanks for the plugin. I use my WP site as an OpenID and have a link rel=’openid.delegate’ pointing to myopenid.com (an OpenID service). That new WP URL canonicalization “feature” essentially locked me out of all my accounts (all the ones that used OpenID authentication).

    Thanks again!

    Bill Burcham

    January 7, 2008 at 11:50 am

  154. [...] solution is this nifty one-line disable canonical redirects plugin from Mark Jaquith. Simply drop that in your WP plugins and enable it and you’ll no longer suffer URL [...]

  155. My current blog has over 500 PR4, PR3 and PR2 pages with my permalink beeing

    /%category%/%postname%/

    Because of Google News I have to change it into

    /%category%/%month%/%day%/%postname%/

    Will I loose all my pageranks or does the Canonical URLs automaticly redirect google to the new pages so I won’t loose pagerank on the next update?

    jan

    January 9, 2008 at 4:30 pm

  156. [...] is heady. However, Mark at WordPress can shed some light on the technical aspects in his post on canonical urls. If I can attempt to restate the purpose of canonical urls, I would say that it attempts to redirect [...]

  157. With the proliferation of blogs and other websites and then different tools that don’t necessairly operate consistently it is highly likely that there will be duplicates and concatenated content and links. It would be useful to have a consistent practice that could ensure some regularity. Maybe you could write an ebook on it?
    Regards
    Ron

    Ron Skruzny

    January 15, 2008 at 7:12 am

  158. [...] We’ve cleaned up URLs a bunch in a feature we call canonical URLs which does things like enforce your no-www preference, redirect posts with changed slugs so a link never goes bad, redirect URLs that get cut off in emails on similar to the correct post, and much more. This helps your users, and it also helps your search engine optimization, as search engines like for each page to be available in one canonical location. More info here. [...]

  159. [...] must have a WordPress version 2.3 or higher. Since WordPress 2.3 and above already has a canonical URL feature, you can take advantage of this. Instead of linking to your blog post with your long URL, you can [...]

  160. I work for a hosting company, and this feature causes us no end of support headaches. People frequently want to move the location of their WordPress installation, and this causes major problems when they do so. We hear from lots of customers unable to access their site.

    It would be much better if this was a preference that could be turned on or off, and if it didn’t affect the admin URLs (so that people could login and turn off the preference if one was available).

    Robert Mathews

    January 30, 2008 at 8:07 pm

  161. I created a website in wordpress but when I type in http://www.sitename.com it goes to sitename.com and drops the www

    Is this a problem. Sure would like to know what I am doing wrong. I use fantastico in install it.

    Can someone help me?

    Nameopoly Domains

    February 6, 2008 at 1:45 pm

  162. [...] Turns out, this capability is part of the amazing work Mark Jaquith has done in 2.3.x with Canonical URLs. With this working, I was able to write a single line into .htaccess that handled nearly every URL [...]

  163. I have problem with www too. When i write http://www.mysite.site.net then drop http://www... Someone knows why?

    Nocleg

    February 12, 2008 at 5:09 am

  164. I have problem with www too. When i write http://www.karpacz.nocuj.net then drop ‘www’… Someone knows why?

    Nocleg

    February 12, 2008 at 5:11 am

  165. [...] www versus non-www: On the WordPress Support Forums, clarification on the issue of www to non-www has been given. WordPress 2.3 offers “canonical URLs” which redirect www to non-www or vice-versa. Go to Options > General and set the URL to whatever you want it to be, with or without the www and WordPress will automatically redirect visitors and search engines to the correct URL and permalink. This was explained in Perishable Press – Comprehensive URL Canonicalization via htaccess for WordPress-Powered Sites”, Weblog Tools Collection – Configuring WP Permalinks, and Mark Jaquith – WordPress 2.3: Canonical URLs. [...]

  166. [...] We’ve cleaned up URLs a bunch in a feature we call canonical URLs which does things like enforce your no-www preference, redirect posts with changed slugs so a link never goes bad, redirect URLs that get cut off in emails on similar to the correct post, and much more. This helps your users, and it also helps your search engine optimization, as search engines like for each page to be available in one canonical location. More info here. [...]

    WordPress 2.3 | Fromtheold

    February 14, 2008 at 8:09 am

  167. [...] truth is, there is more to URL canonicalization than I’ve mentioned here, but this is another proof of how WordPress has grown and [...]

  168. Great post. I understand, if search engine spider visit those links, they think that it was duplicate content, you can get banned from google. but it will be no problem if you didn’t give that canonical link to website, google will not spider it!

    ahndunk

    February 18, 2008 at 5:59 am

  169. [...] We’ve cleaned up URLs a bunch in a feature we call canonical URLs which does things like enforce your no-www preference, redirect posts with changed slugs so a link never goes bad, redirect URLs that get cut off in emails on similar to the correct post, and much more. This helps your users, and it also helps your search engine optimization, as search engines like for each page to be available in one canonical location. More info here. [...]

  170. Hello,

    I am running wp 2.3.3. The site is hosted on Yahoo. The yahoo custom permalinks plugin is installed an activated.

    I have also installed the plugin to disable canonical URLS. I still cannot get permalinks to work correctly. The site in question is http://www.showukare.com.

    An example of the problem is http://www.showukare.com/faq.

    I have a page with the page slug of “faq” but it will not load. The page will load is you use the default link structure:
    http://showukare.com/?page_id=2

    Is there anything I can do to get this to work with this setup?

    josh

    February 28, 2008 at 7:22 pm

  171. Thanks to this little beauty Digg will now recognize my site again.

    bradstinyworld

    March 3, 2008 at 9:14 am

  172. [...] save for what was visible on the homepage was unaccessible. Thanks to a great little plugin from Mark everything is fixed. Way to go Mark! Share and Enjoy: These icons link to social bookmarking [...]

  173. [...] We’ve cleaned up URLs a bunch in a feature we call canonical URLs which does things like enforce your no-www preference, redirect posts with changed slugs so a link never goes bad, redirect URLs that get cut off in emails on similar to the correct post, and much more. This helps your users, and it also helps your search engine optimization, as search engines like for each page to be available in one canonical location. More info here. [...]

  174. [...] We’ve cleaned up URLs a bunch in a feature we call canonical URLs which does things like enforce your no-www preference, redirect posts with changed slugs so a link never goes bad, redirect URLs that get cut off in emails on similar to the correct post, and much more. This helps your users, and it also helps your search engine optimization, as search engines like for each page to be available in one canonical location. More info here. [...]

  175. [...] We’ve cleaned up URLs a bunch in a feature we call canonical URLs which does things like enforce your no-www preference, redirect posts with changed slugs so a link never goes bad, redirect URLs that get cut off in emails on similar to the correct post, and much more. This helps your users, and it also helps your search engine optimization, as search engines like for each page to be available in one canonical location. More info here. [...]

    WordPress 2.3

    March 18, 2008 at 12:09 pm

  176. I can’t thank you enough for your efforts. I’d previously rolled back a word press upgrade because of this issue… and its interaction with Yahoo’s Permalinks. When I decided to move to 2.3.3, I’d mostly forgotten about this issue (or at least assumed it’d been resolved). I had a sick feeling in my gut when my permalinks broke all over again. Thankfully, I came across your plugin… and got my blog back up and running.

    THANK YOU!!!!!

    Anthony

    Anthony

    March 18, 2008 at 4:54 pm

  177. I’ve detailed the best method for wordpress installation on yahoo…including the best permalinks possible here – http://natespost.com/index.php/install-wordpress-on-yahoo-server/ hope this helps!

    nate

    March 20, 2008 at 11:50 pm

  178. [...] We’ve cleaned up URLs a bunch in a feature we call canonical URLs which does things like enforce your no-www preference, redirect posts with changed slugs so a link never goes bad, redirect URLs that get cut off in emails on similar to the correct post, and much more. This helps your users, and it also helps your search engine optimization, as search engines like for each page to be available in one canonical location. More info here. [...]

    WordPress 2.3 : afiliasi

    March 21, 2008 at 1:21 am

  179. [...] Ho fatto un paio di prove di funzionamento del blog e mi sono accorto che l’Host provider ha fatto dei cambiamenti che mi hanno costretto ad aggiornare WordPress. Con grande sorpresa l’aggiornamento è andato benissimo, liscio come l’olio, in altre circostanze è stato un vero incubo ma … lo scoprire che i permalink non funzionavano più mi ha colto totalmente impreparato. So che Yahoo per motivi di sicurezza usa una struttura un pò particolare ma immaginavo che al rilascio delle nuove relise di WordPress aggiornasse anche i suoi plugin. Invece no. Dannazzione sono stato una notte a rompermi la testa per rimettere online tutti i miei articoli con link esterni. Un’impazzimento non da poco Poi sul sito di WordPress ho trovato questo topic  e la soluzione suggerita si trova in un plugin rilasciato a seguito di questa discussione [...]

  180. jouer poker en ligne gratuites

  181. regle du jeu poker texas

    online poker players

    April 2, 2008 at 3:25 pm

  182. texas holdem freeware download

  183. Her tournoi de poker en ligne longshot base out martingale party poker reload bonus code stand wiseguy belly pair prize spikes sito poker percentage chalk slots handicapper pot!

  184. [...] We’ve cleaned up URLs a bunch in a feature we call canonical URLs which does things like enforce your no-www preference, redirect posts with changed slugs so a link never goes bad, redirect URLs that get cut off in emails on similar to the correct post, and much more. This helps your users, and it also helps your search engine optimization, as search engines like for each page to be available in one canonical location. More info here. [...]

  185. Consider roulette tipps implied hard lottery first card chase credit platinum student ragged bet progressive flush spielen sie kasino online bluff muck fast fold dollar underlay.

    roulette online games

    April 3, 2008 at 1:48 pm

  186. discover credit card phone number

  187. Thank you! this solved my problem of endless redirects because of some weird settings on my server (that are beyond my control).

    Dan Butcher

    April 4, 2008 at 11:58 am

  188. Hmm… This should have been front and center news for wordpress upgraders, as an infinite indirect is definitely grounds for panic.

    Granted, some servers are poorly implemented, however users don’t have any other choice but to use them. I had to install the anti-canonical redirect plugin to restore access to the site, but not before a bit of panic. ugh.

    ceti

    April 6, 2008 at 10:26 pm

  189. keno online…

    With the omaha poker online spielen giochi gratis video poker…

    cash advance detroit

    April 8, 2008 at 11:08 am

  190. Nice, problems with 2.5 in that the pages on my blog dont work any more after upgrading. http://blog.takeabreak.co.nz

    takeabreaknz

    April 8, 2008 at 7:46 pm

  191. [...] We’ve cleaned up URLs a bunch in a feature we call canonical URLs which does things like enforce your no-www preference, redirect posts with changed slugs so a link never goes bad, redirect URLs that get cut off in emails on similar to the correct post, and much more. This helps your users, and it also helps your search engine optimization, as search engines like for each page to be available in one canonical location. More info here. [...]

  192. celcom malaysia caller ringtones…

    nextel ringtones cd

    April 18, 2008 at 11:51 am

  193. [...] WordPress 2.3: Canonical URLs to avoid confuse search engines and to consolidate your rankings for your content, there should only be one URL for a resource. We call this URL the canonical URL (tags: wordpress seo url canonical) [...]

  194. poker gratis in italiano…

  195. [...] We’ve cleaned up URLs a bunch in a feature we call canonical URLs which does things like enforce your no-www preference, redirect posts with changed slugs so a link never goes bad, redirect URLs that get cut off in emails on similar to the correct post, and much more. This helps your users, and it also helps your search engine optimization, as search engines like for each page to be available in one canonical location. More info here. [...]

  196. [...] fine (it was about twelve hours that pages except the home page were broken). Also, Canonical URIs work now, so one like richardxthripp.richardxthripp.com/index.php?p=139 (generated by yak, my [...]

  197. Great article. Thanks!

    Super Mario

    April 29, 2008 at 9:14 am

  198. free boost ringtones…

    Wie texas holdem poker 5.1 roulette gratuites…

    euro poker gratis

    May 6, 2008 at 2:19 am

  199. Great article. Thanks!

    spielen

    May 11, 2008 at 3:18 pm

  200. [...] all to do with those canonical URL’s and the fix was a case of installing the "Disable Canonical URL Redirection " plugin which took a couple of minutes. I’m not sure if I should leave that as a [...]

  201. Excellent article. Thanks for this!

    Webdesign Portfolio

    May 16, 2008 at 3:33 pm

  202. mlkuxf qirscjadb wgnhztyk aerkqtcsv yeksa xjko spljetbxv

    ptdfukorv wdsciebzx

    May 19, 2008 at 4:28 pm

  203. Home Entertainment Center is nothing less than one of the most amazing one- man variety shows of all time. Besides being hysterically funny, Banks in the course of an hour, sings and plays banjo, flute, bass, drums, harmonica, and both electric and acoustic guitar. He’s not an impersonator, but that doesn’t stop him from doing brief tributes to Elvis, Bob Dylan, Paul Simon, and Van Morrison.

  204. qcrbzf fvjo acutse ufsaokz

    last he rose

    June 10, 2008 at 5:08 pm

  205. [...] 2.3 (the blog software I’m using) introduced the concept of canonical URLs, which caused a problem on my host after upgrading. To sum it up, there are many possible ways to [...]

  206. It’s great, but there is one more redirect part that’s missing. Consider the following scheme:

    /%post_id%-%postname%/

    which is great for those long urls which can be truncated in email

    let’s say the URL is:

    /blog/5-my-very-long-url/

    if it somehow gets truncated and person reaches:

    /blog/5-my-very

    it still works (i.e. fetches the article #5), which is perfect! however wordpress (at least 2.5.1) will not automatically rewrite the broken url to:

    /blog/5-my-very-long-url/

    and now someone might start using:

    /blog/5-my-very

    in bookmarks, and elsewhere, which creates “duplicated content”.

    So if you could teach wp to handle that issue it’d be golden.

    Thank you Mark for doing a great job.

    stas bekman

    July 5, 2008 at 9:24 pm

  207. [...] the DNS not propagating itself. After eliminating the culprit down to WordPress, I found that a canonical URL feature had been implemented in version 2.3 that had apparently wreaked havoc on several [...]

  208. ‘ Senate Budget Committee Chairman Kent Conrad, D- N. D., said Saturday he is donating 10,500 to charity and refinancing his loan on an apartment building after reviewing documents showing he received special…

    lease option buy

    July 31, 2008 at 10:22 pm

  209. pdoc

    chlortrimeton

    August 7, 2008 at 4:04 pm

  210. Thank you for this article. Has been proven to be very helpful for me. Good Job!

    Cytaty

    August 15, 2008 at 8:21 am

  211. Good job. Useful article and URL’s

    Noclegi Kołobrzeg

    August 18, 2008 at 3:03 am

  212. Has been proven to be very helpful for me . Good article, useful URL’s
    Thanks

    Noclegi Zakopane

    August 18, 2008 at 3:06 am

  213. WOW! Thank you for this great Link collection…!

    CFD

    September 21, 2008 at 10:21 am

  214. This is very interesting and helpful article. Thank you for your work.

    Gry Logiczne

    September 21, 2008 at 10:51 am

  215. [...] Canonical URL’s is not a difficult concept to understand once you look at what the SEO issues are. [...]

  216. Good job. Useful article and URL’s.
    Thanks

    Statusy GG, Opisy na GG

    September 25, 2008 at 5:18 am

  217. [...] We’ve cleaned up URLs a bunch in a feature we call canonical URLs which does things like enforce your no-www preference, redirect posts with changed slugs so a link never goes bad, redirect URLs that get cut off in emails on similar to the correct post, and much more. This helps your users, and it also helps your search engine optimization, as search engines like for each page to be available in one canonical location. More info here. [...]

  218. [...] the default compact WordPress rewrite rules to the verbose type. And the second was to disable canonical redirects. The server was setting an incorrect $_SERVER['REQUEST_URI'] value, which sometimes caused some [...]

  219. [...] if you upgrade WordPress in the standard way. WordPress developers are nice enough to provide workaround modules for such [...]

  220. YmO0FG bnnLst19hdY6llAd3fg6

    standy

    November 9, 2008 at 3:18 am

  221. [...] ADDING: Beware of WordPress 2.3’s new Canonical URL feature. It’s a great feature, long overdue, but if you have redirects in .htaccess, you can possibly create a redirect loop. Lots of info on this feature can be found at Mark on WordPress. [...]

  222. This sure does break a LOT of things. It breaks
    any site which uses cookies, for example, since
    cookies for http://www.site.com won’t be sent back to
    site.com. It breaks PHP sessions for the same
    reason. It breaks stadard basic authentication,
    as a browser which has saved the password for
    http://www.site.com won’t send it to site.com or
    vice versa. I could go on, but I think you get
    the point. In my opinion this should definitely
    not be the default. Generally, anyone who comes to us with WordPress problems, 80% of the time
    the problem traces back to this canonical URL
    misfeature.

    Ray

    November 18, 2008 at 12:24 pm

  223. [...] save for what was visible on the homepage was unaccessible. Thanks to a great little plugin from Mark everything is fixed. Way to go Mark! Powered by Stumble! for [...]

  224. Hi Mark,

    I am having a trouble with URL redirect in WP 2.6.3 admin panel. My setup is such that whatever comes to http://www.mydomain.com/blog gets re-directed to the blog.mydomain.com/blog and this is internal and all I expect from wordpress is to use the siteurl from wp-options (or homeurl) to create the prefix for all the links. But this is not happening and the admin panel links end up having http://www.mydomain.com/wp-admin etc.. (the blog part is omited). do you know how I can fix this?

    Thanks
    Maddy

    Maddy

    November 25, 2008 at 1:16 pm

  225. nupgtm cgze myflj

    russians womens

    November 27, 2008 at 8:11 pm

  226. Great website!

    gry

    December 1, 2008 at 8:41 am

  227. [...] the DNS not propagating itself. After eliminating the culprit down to WordPress, I found that a canonical URL feature had been implemented in version 2.3 that had apparently wreaked havoc on several [...]

    The Undeading

    December 4, 2008 at 9:15 pm

  228. scovnaz lkbipf ycuef

    potassium

    December 11, 2008 at 5:23 pm

  229. Hi Mark,

    I have a thread going at the WP forums regarding no-www and www canonicalization issues: http://wordpress.org/support/topic/224976?replies=5

    I launched a site a few weeks ago with the URL structure http://domain.com & Google has already indexed some pages.

    I updated the URL structure to http://www.domain.com and updated all links on my site. It looks like everything without www is redirecting to http://www.domain.com.

    Is this a global 301 or 302 redirect now from http:// to http://www ? Are there any other steps you recommend taking?

    I am currently using 2.6.1, but will be upgrading to 2.7 soon.

    wp3423

    December 13, 2008 at 1:26 pm

  230. Hi Mark,

    I’ve installed and uninstalled WordPress 2.7 on godaddy.com three times. It’s set up as http://domain.com/blog.

    I get the infinite Redirect loop because of my .htaccess file.

    Here’s the Firefox 3.0.5 error message:

    Redirect Loop

    Firefox has detected that the server is redirecting the request for this address in a way that will never complete.

    The browser has stopped trying to retrieve the requested item. The site is redirecting the request in a way that will never complete.

    ————————————
    I disabled canonical redirection (domain.com –> http://www.domain.com) in .htaccess and so WordPress works fine.

    However, I really don’t want to disable canonical redirection for the site as a whole just for WordPress.

    The plugin that started this thread… is it still valid? And if so, which file should I modify so that it’s included?

    Any advice would be greatly appreciated!

    Cheers,

    Wayne

    Walk in Bath

    February 5, 2009 at 12:58 pm

  231. [...] Remove The TinyURL In Twitter Canonical URLs Check Server Headers Tool – HTTP Status Codes Checker Share and [...]

  232. I have several blogs hosted on different accounts. On some accounts, I have no errors while running wordpress while on others I have a ton. I cannot figure out why I keep getting this redirect issues even after uploading your plugin. Does it have anything to do with my changing the permalinks? I have too many blogs set up and grounded to have to uproot them so am hoping for a better solution.

    Tiara

    February 15, 2009 at 5:12 pm

  233. thanks for this great plugin. This is really valuable for wordpress users.

    Winwab

    February 17, 2009 at 2:10 am

  234. I am just migrating to WP and there seems to be a basic misunderstanding of canonical URLs. There should be only ONE proper representation. This works:

    http://markjaquith.wordpress.com/snufflebunk/wordpress-23-canonical-urls/ does a proper 301 to

    http://markjaquith.wordpress.com/2007/09/25/wordpress-23-canonical-urls/

    a case with categories eg.

    http://www.gl3nnx.net/snornpoogle/nature-shine-wordpress-theme.htm returns a 200 instead of

    http://www.gl3nnx.net/wordpress-themes/nature-shine-wordpress-theme.htm

    this can really mess up google (duplicate content) and everyone else and should never happen.

    its not my site, but same thing on mine. perhaps I am missing a setting

    davidsanger

    March 20, 2009 at 10:03 pm

  235. however on the WPO site

    http://wordpress.org/show8case/platinumgames/

    returns 404 and

    http://wordpress.org/showcase/platinumgames/

    I downloaded your plugin too and ti seems not to make a difference in the category based permalinks. again am I missing somethin??

    davidsanger

    March 20, 2009 at 10:18 pm

  236. Another thumbs up from someone who was using Yahoo hosting with infinite loop issues on archive links. This plugin fixes the issues! Thank you!

    Kate

    March 26, 2009 at 11:39 am

  237. Thanks for those all article at your blog. Its very helpful.

    Perfumy

    April 14, 2009 at 9:00 am

  238. Excellent article, thanks.

    Green Engineer

    April 17, 2009 at 5:04 pm

  239. We’ve just got ourselves in the loop Mark mentions – the blog is at domain.com and the main site is at http://www.domain.com. We redirected in the .htaccess and the blog stopped working so we have to go back and diable the canonical redirect in WP admin but I can’t access the admin – the login seems to loop!

    Bizarrely we have deleted the htaccess redirect yet the site is still redirecting. Is there a way to access my log’s admin panel while the redirect is still in place?

    Kath Dawson

    May 7, 2009 at 9:02 am

  240. Great post, make more ;-)

    SEO Ekspert

    June 22, 2009 at 11:26 am

  241. Maddy, this has been fixed for WordPress 2.7 — it only does canonical domain redirection for www. differences.

    Mark Jaquith

    December 5, 2008 at 5:20 pm

  242. wp3423 — All versions of WordPress since 2.3 will do 301 redirects based on the domain you’ve set as your “Blog URL” in Settings → General. You’re all set. Google will follow those redirects and consolidate your “Google juice.”

    Mark Jaquith

    December 16, 2008 at 7:37 pm

  243. Ray — They’d be having those problems regardless of the redirect.

    Mark Jaquith

    December 16, 2008 at 7:39 pm

  244. Wayne,

    Yes, the plugin can still be used to disable canonical URL redirection. Upload it to wp-content/plugins/ and activate it from the Plugins page in your wp-admin.

    Or just remove the contradictory line from your .htaccess

    Mark Jaquith

    March 6, 2009 at 2:06 am


Leave a Reply