• I have a broken permalink, and for the life of me I can’t quite figure out why. My .htaccess file is reprinted below.
    Broken: https://www.rapp.org/archives/2003/12/musical_rapps/
    Works as: https://www.rapp.org/index.php?p=147
    Any ideas??
    The thing that makes this especially puzzling is that WP is returning a 404 error. If I mistype any other permalink URL, I get a “no posts matched your criteria”. Like this:
    https://www.rapp.org/archives/2003/12/nonexistent_post/
    Thanks!
    –Ron
    RewriteEngine On
    RewriteBase /
    RewriteRule ^archives/(.*).jpg /wp-content/$1.jpg
    RewriteRule ^archives/(.*).php /wp-content/$1.php
    RewriteRule ^archives/(.*).gif /wp-content/$1.gif
    RewriteRule ^archives/(.*).pdf /wp-content/$1.pdf
    RewriteRule ^archives/(.*).pps /wp-content/$1.pps
    RewriteRule ^archives/(.*).mpeg /wp-content/$1.mpeg
    RewriteRule ^archives/?([0-9]{4})/?([0-9]{1,2})?/?([0-9]{1,2})?/?([_0-9a-z-]+)?/?([0-9]+)?/?$ /index.php?year=$1&monthnum=$2&day=$3&name=$4&page=$5 [QSA]
    RewriteRule ^archives/?(.*) /index.php?category_name=$1 [QSA]
    RewriteRule ^archives/(.*)/(feed|rdf|rss|rss2|atom)/?$ /wp-feed.php?category_name=$1&feed=$2 [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/([0-9]{4})/([0-9]{1,2})/([_0-9a-z-]+)/(feed|rdf|rss|rss2|atom)/?$ /wp-feed.php?year=$1&monthnum=$2&name=$3&feed=$4 [QSA]
    RewriteRule ^archives/([0-9]{4})/([0-9]{1,2})/([_0-9a-z-]+)/trackback/?$ /wp-trackback.php?year=$1&monthnum=$2&name=$3 [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]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter ronrapp

    (@ronrapp)

    Addendum: I’ve tried several things to see if I can get this post to appear at it’s permalink. here’s what I’ve tried:
    1. Replaced all the post content with plain text, just in case something in the post was causing a problem.
    2. Deleted all comments for that post
    3. Changed the post title AND the post slug
    No dice on any of those changes, so I put everything back the way it was. Is it possible the database is corrupted? This is the only post that does this.

    Thread Starter ronrapp

    (@ronrapp)

    OK, I found the problem, though I am not sure why it’s occurring.
    I renamed the post slug from “musical_rapps” to “musical_rapp”, deleting the trailing “s”. Now the permalink works. So there must be something in my .htaccess file that’s behind the problem.
    But what?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Broken Permalink’ is closed to new replies.