Forum Moderators: phranque
however, the following got me stumped:
want to redirect
/dir1/dir2/some_widget_name.html
to
/newbasedir/dir1/dir2/some-widget-name/
the basic redirect is simple, however, spaces are replaced by underscores '_' in the old URL and need to be replaced by hyphens '-' in the new URL.
is there a way to do this replacement inline, so-to-speak?
my alternative is to just define a RewriteMap txt file with: oldURL newURL pairs.
any idea what the efficiency implications are of using RewriteMaps?