On 13/04/2012 14:59, Fabrizio Pollastri wrote:
> Hello,
>
> I looking for a way to map and to proxy a whole set of remote servers (may be
> specified by regex) into a local URL space.
>
> For example, all remote server having .org TLD, mapped below the local URL
> http://myweb.com/ORG//
>
> Than
> # RewriteRule ^(.*)$ coffee.cgi?type=$1
> But apache2 erroneously outputs 'You ordered a coffee.cgi', instead of 'You
> ordered a mocha'.
When you make a substitution in htaccess with mod_rewrite, the
resulting substitution gets fed back in and rewrites get a chance to
run against the new URL.
Hello,
I am following some HOWTOs about mod_rewrite, but they are not working for me.
I want to translate 'example.net/mocha' to '/coffee.cgi?type=mocha'.
This is what I have:
##.htaccess##
# RewriteEngine on
# Options +FollowSymlinks
# RewriteBase /
# RewriteRule ^(.*)$ coffee.cgi?type=$1
##cof