View Single Post
Old 05-08-2006   #43
seomike
MĚd_Rewrite Guru
 
Join Date: Jun 2004
Location: Dallas, Texas but forever a Floridian!
Posts: 627
seomike is a splendid one to beholdseomike is a splendid one to beholdseomike is a splendid one to beholdseomike is a splendid one to beholdseomike is a splendid one to beholdseomike is a splendid one to beholdseomike is a splendid one to behold
Do all your oldd urls follow the same date pattern? and do all your theme folders stay named the same? If so this would work with the redirect from old to new.


Code:
# redirect /2005/12/30/widget-ideas/ ---> /themes/themes2/widget-ideas/ 
RewriteRule ^[0-9]+/[0-9]+/[0-9]+/([^/]+)/?$ http://www.yourdomain.com/themes/themes2/$1/ [R=301,L]
You'll probably want this to be the first rewrite rule in the htaccess.
seomike is offline   Reply With Quote