https://issues.apache.org/bugzilla/show_bug.cgi?id=45188

           Summary: mod_rewrite make mod_headers and mod_expires invalid
           Product: Apache httpd-1.3
           Version: 1.3.41
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_rewrite
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


i have two site :
www.site.com
fr.site.com
in two different machines, they both behind many squids.

i want to redirect the French users who visit www.site.com to fr.site.com , so
i put the following lines in httpd.conf:

ServerName www.site.com
RewriteEngine On
RewriteCond %{HTTP:Accept-Language} ^fr
RewriteRule ^/$ http://fr.site.com/ [L,R=permanent]

it works well.

on the other hand, i want the squid to cache the above 301 responsion, so it
must contain a "Expire" header.
and i added the following:

ErrorHeader  set  Expire  "Thu, 12 Jun 2015 02:45:34 GMT"

but it doesn't work!

if i change the "RewriteEngine" to Off , it works!

by the way, apache 2.0 and 2.2 doesn't have this bug


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to