WordPress.org

Ready to get started?Download WordPress

Forums

pretty & ugly URL equivalents (4 posts)

  1. jerd
    Member
    Posted 6 years ago #

    After upgrading to 2.3 I've run into a problem related to the new canonical redirect functionality. I have permalinks set to 'pretty', but before 2.3 I was using a specific ugly URL to display posts from a specific cateogory from specific months.

    For example I used:

    /index.php?cat=1&m=200701

    The new canonical rewriting forwards that to /category/categoryname.

    If I reverse the query arguments (/index.php?m=200701&cat=1), it forwards to /2007/01.

    Can someone tell me what the 'pretty' equivalent of my ugly links would be?

    I've tried '/2007/01/category/categoryname' and '/category/categoryname/2007/01' and '/category/2007/01/categoryname' to no avail. I've also tried variations of '/category/categoryname?m=200701' and '/2007/01?cat=1' with similar results.

    For now I've used the plugin to disable the new canonical functionality, but I hate to use those kinds of band-aids.

  2. jerd
    Member
    Posted 6 years ago #

    *bump*

    Still exists in 2.5.1

  3. Chris_K
    Member
    Posted 6 years ago #

    This might be a good topic for the WP Hackers mailing list -- more info at http://lists.automattic.com/mailman/listinfo/wp-hackers

  4. Ivovic
    Member
    Posted 6 years ago #

    its fun to play with URLs, but it sounds to me like you could just be doing this with a query in a page template, and give it whatever URL you want.

Topic Closed

This topic has been closed to new replies.

About this Topic