httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mathijs <mathijs...@gmail.com>
Subject Re: [users@httpd] Reverse proxy
Date Tue, 06 Mar 2012 21:18:58 GMT
On Tue, Mar 6, 2012 at 10:06 PM, Mathijs <mathijssch@gmail.com> wrote:

> %{HTTP_HOST} is not a valid part of a substitution, its only valid when
> used with a RewriteCond directive. See
> http://httpd.apache.org/docs/current/mod/mod_rewrite.html#rewriterule for
> valid uses of RewriteRule.
>

Apologies, I am misreading the docs myself, apparently it can be used in a
RewriteRule. The following solution still stands though:


>
> In this case, you don't need mod_rewrite at all. Instead set both
> redirects with "RedirectMatch ^/(ifolder|admin)$ https://teknerds.net/$1"
>

Mime
View raw message