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:
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.
TIA
The topic ‘Regular expression in .htaccess’ is closed to new replies.