On Tue, Mar 6, 2012 at 10:06 PM, Mathijs <mathijs...@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";
>

Reply via email to