Ready to get started?Download WordPress


Regular expression in .htaccess (1 post)

  1. finid
    Posted 2 years ago #

    Regular expression gurus, here's what I'm trying to accomplish

    redirect all date-based posts to just the post name, so for example:

    http://me.com/2011/08/14/this-post becomes http://me.com/this-post

    Below expression does not seem to be doing the trick:

    RewriteRule ^[0-9]{4}/[0-9]{2}/[0-9]{2}/$ $1 [NC]

    Haven't used regular expressions a whole lot, so this is kinda new territory to me.


Topic Closed

This topic has been closed to new replies.

About this Topic