Forums

404 on cruft URLs (2 posts)

  1. Ryan Boren
    WordPress Dev
    Posted 8 years ago #

    The dash between the post id and post name is probably screwing things up since it is not an optional match. Try adding a question mark after that dash. Like this:
    ?([0-9]+)?-?([0-9a-z-]+)?([0-9]+)?/?$
    That might mess up the title matching, however, since the title can have dashes. I don't have time to think it through right now, but I'll try it out when I return home in the evening. Let us know how it goes.

  2. beleg
    Member
    Posted 8 years ago #

    RewriteRule ^blog/([0-9]{4})?/?([0-9]{1,2})?/?([0-9]{1,2})?/?([0-9]+)?-?([0-9a-z-]+)?([0-9]+)?/?$ /index.php?year=$1&monthnum=$2&day=$3&p=$4&name=$5&page=$6 [QSA]
    it worked wit the question mark after the dash, thanks a lot !!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.