Broken Permalink
-
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]
- The topic ‘Broken Permalink’ is closed to new replies.