httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Zenczak <>
Subject [users@httpd] Redirect gets ignored
Date Mon, 15 Jun 2015 21:11:09 GMT
So I am running Apache 2.4 on Windows Server 2008. My Virtualhost looks kinda like this:


<VirtualHost *.80>
    ServerAlias *
    ServerAlias *
    ..... 15 more aliases
    Include z:/place/

    RewriteEngine On

    # redirect 1 group
    RewriteCond %{HTTP_HOST} ^(www\.)?site2\.com\/Thing\/ [OR]
    RewriteCond %{HTTP_HOST} ^(www\.)?site2\.com\/thing\/
    RewriteRule .* [R=302,L]

    # redirect 2 group
    RewriteCond %{HTTP_HOST} ^(www\.)?site2\.com [OR]
    RewriteCond %{HTTP_HOST} ^.*\.site2\.com
    RewriteRule .* [R=302,L]

    ----- six more redirect groups

So here is the problem. When I have both these redirect groups in the code, redirect 2 group
only works and<> goes to www.site1/fun.<http://www.site1/fun.>
When I comment out redirect 2 group. The redirect 1 group works fine, but redirect 2 group
only goes to<> I can't figure out what is
going on here. Why can't I get both these to work at the same time?  Any suggestions would
be helpful.


View raw message