Howdy, hoping someone can tell me what I'm doing wrong. I need to rewrite urls for any files starting with rec_* in a subdirectory, to their new home in another subdirectory. I've only done the best basic apache rewrite rules in the past, this is what I have right now, which should explain what I'm trying to do:
RewriteRule ^din/rec_([A-Za-z0-9]+)\.htm$ din/rec/rec_$1\.htm
Does the rule make sense? Can you help me? Thanks!
My (unresearched) belief is that mod_rewrite sees the URI starting with a forward slash...therefore, your rule "^d" will never get matched, because none of the URIs will start with a "d". Try "^/din..."