Forum Moderators: phranque
example.com/first-sub-directory/ the user will see the content of /first-sub-directory/page1.html at the original URL they requested. If you want a redirect the target should include the protocol and domain name. That gets you a 302 redirect. To make it a 301 redirect add the [R=301,L] flags. example.com/<random-anything>/first-sub-directory/ or example.com/<random-anything>first-sub-directory/ or or example.com/<random-anything>/<random-anything>first-sub-directory/ is requested. For an internal rewrite, this is a very bad idea as it allows infinite duplicate content to be served.
You guys are good. You've saved my butt many-a-time.