Forum Moderators: phranque
[edited by: StaceyJ at 7:50 pm (utc) on Dec 20, 2010]
RewriteRule ^(([^/]+/)*)([^\./]+)$ /$1cgi-bin/shop/$3 [L]
Actually, to help you finish projects in a timely manner despite our sporadic response postings here, that's good advice generally -- Instead of asking "what if" questions here, test it and find out -- That will likely give you a much faster answer.
If it is possible to invoke a redirect after an internal rewrite, then the result will always be exposure of your internal filepaths as URLs to the browser (and to search engines -- bad news!).
However, since your 'remove /cgi-bin/store/' redirect checks for THE_REQUEST, it does not matter that it is in a lower-level .htaccess file, since it will never be invoked following the top-level .htaccess 'widgets-to/cgi-bin/store' rewrite. Test it and see... :)
However, since I don't have the luxury of a test server or anything like that