I would like to permanently redirect the below URL:
http://www.example.com/blog/archives/#*$!X/YY/%postname%/
to
http://www.example.com/blog/#*$!X/YY/%postname%/
#*$!X and YY are all numbers.
The four Xs are actually year and the 2 YYs are month.
I tried the below rewrite rule and it don't work. Any help is much appreciated.
RewriteEngine On
RewriteBase /blog/
RewriteRule ^archives/([0-9]+)/([0-9]+)/ /blog/$3 [R=301,NC,L]
[edited by: incrediBILL at 4:59 pm (utc) on May 10, 2012]
[edit reason] fixed URLS, use Example.com [/edit]