WordPress.org

Support

Support » How-To and Troubleshooting » Inconsistent Broken Permalinks

Inconsistent Broken Permalinks

  • Alex

    @bald_technologist

    I am running into an odd issue. For the majority of posts on my site, clicking on the permalink from the category archive page results in a an error message (“Sorry, no posts matched your criteria.”) unless the item happens to be linked to from the front page of my site.
    My permalink structure is really basic:
    /archives/%postname%/
    Resulting in this .htaccess:
    RewriteEngine On
    RewriteBase /
    RewriteRule ^archives/category/(.*)/(feed|rdf|rss|rss2|atom)/?$ /wp-feed.php?category_name=$1&feed=$2 [QSA]
    RewriteRule ^archives/category/?(.*) /index.php?category_name=$1 [QSA]
    RewriteRule ^archives/author/(.*)/(feed|rdf|rss|rss2|atom)/?$ /wp-feed.php?author_name=$1&feed=$2 [QSA]
    RewriteRule ^archives/author/?(.*) /index.php?author_name=$1 [QSA]
    RewriteRule ^archives/?(.*) /index.php?name=$1 [QSA]
    RewriteRule ^archives/([_0-9a-z-]+)?/?([0-9]+)?/?$ /index.php?name=$1&page=$2 [QSA]
    RewriteRule ^archives/([_0-9a-z-]+)/(feed|rdf|rss|rss2|atom)/?$ /wp-feed.php?name=$1&feed=$2 [QSA]
    RewriteRule ^archives/([_0-9a-z-]+)/trackback/?$ /wp-trackback.php?name=$1 [QSA]
    RewriteRule ^feed/?([_0-9a-z-]+)?/?$ /wp-feed.php?feed=$1 [QSA]
    RewriteRule ^comments/feed/?([_0-9a-z-]+)?/?$ /wp-feed.php?feed=$1&withcomments=1 [QSA]
    The most confusing aspect is the fact that some work and some do not. I have looked at the structure of the permalinks on both sets of pages and cannot see any difference in them.
    All of the links on my main page work properly. If you visit a category page Cooking for example) you can click on the first permalink (“Mmmm… Summer Drinks”) and it will work because it also happens to be on the main page. But the second link (“The Thermochemical Joy of Cooking”) does not work as it is not on the main page.
    I am running 1.2 with the following plugins activated: Search Hilite, MarkDown, Syntax Highlighter 2, WP Style Switcher.
    Any help would be truly appreciated!
    Alex

Viewing 6 replies - 1 through 6 (of 6 total)
  • Alex

    @bald_technologist

    Well, if I change my permalink structure to ‘/%year%/%postname%/’ everything works properly. Odd.
    Any ideas?
    Alex

    I’m having the same problem?
    Try it!
    Any solutions to this, or do we have to just skip using post_id in permalink structure? 😉

    Anyone?
    Is this a bug?

    I’m having the same problem and it would be nice to use that “slug” instead of a post id for a permalink.

    Try RESETTING the Mod Rewrite rules by going into your admin, options, permalinks, checking the settings and CLICKING THE “UPDATE PERMALINK STRUCTURE” button.
    I had the same problems that you guys/girls had and this fixed it.

    These are known issues, most of which are fixed in CVS. 1.3 will handle a much larger variety of permalink structures.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Inconsistent Broken Permalinks’ is closed to new replies.
Skip to toolbar