Canonical URLs not aggressive enough (4 posts)

  1. Matt Jacob
    Posted 6 years ago #

    Recently, I changed my permalink structure from the standard numeric (/journal/archives/337) to a custom setting of '/archives/%post_id%/%postname%.html' (/journal/archives/337/the-post-title.html). This was mostly for SEO and to allow static pages to be created easily if needed.

    All existing URLs in the old format (just the post ID) still work fine, which is good, but shouldn't the canonical URLs feature do an HTTP 301 redirect to my new permalink structure? If not, I can write a little code and a mod_rewrite rule to convert old incoming links, but it seems like the work has already been done and this is built in.


  2. Matt Jacob
    Posted 6 years ago #

    This is a month old with no replies. Does anyone agree or disagree with the point I made above?

  3. grapepress
    Posted 6 years ago #

    I agree with what you're saying. Myself and another poster would like to achieve what you're describing (and more).

    If you do write some code please share it with the rest of us! :-)

  4. grapepress
    Posted 6 years ago #

    I've posted a possible solution:

Topic Closed

This topic has been closed to new replies.

About this Topic