Support » Fixing WordPress » Regular expression in .htaccess

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

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

    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.


  • The topic ‘Regular expression in .htaccess’ is closed to new replies.