>Number: 4742 >Category: mod_rewrite >Synopsis: mod_rewrite doesn't rewrite (always) URL. >Confidential: no >Severity: serious >Priority: medium >Responsible: apache >State: open >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Tue Jul 20 02:40:00 PDT 1999 >Last-Modified: >Originator: [EMAIL PROTECTED] >Organization: apache >Release: 1.3.6 >Environment: IRIX64 nirvanet 6.4 02121744 IP27 GCC 2.8.1 (/usr/local/lib/gcc-lib/mips-sgi-irix6.4/2.8.1/specs) >Description: the result depend in the browser!!! with Netscape, mod_rewrite does his work only if you make a reload or follow a link(*). with IE5, the refresh doesn't work. when the mod_rewrite doesn't do his work, it doesn't touch the mod_rewrite.log file, it's not a question of false conditions/tests. (*)a link followed worked when I used irix compiler instead of gcc compiler, so there is a difference also between the two codes. (Rem: I tested the same stuffs but without virtual hosts on Freebsd, and it was correct) >How-To-Repeat: in a Virtual host, I wanted a referer redirection, so I added
RewriteEngine on RewriteCond %{HTTP_REFERER} !^http://mysite.com/path/.*$ RewriteRule ^(.*) http://mysite.com/otherpath RewriteLogLevel .... ok, that's all >Fix: not actually... >Audit-Trail: >Unformatted: [In order for any reply to be added to the PR database, you need] [to include <[EMAIL PROTECTED]> in the Cc line and make sure the] [subject line starts with the report component and number, with ] [or without any 'Re:' prefixes (such as "general/1098:" or ] ["Re: general/1098:"). If the subject doesn't match this ] [pattern, your message will be misfiled and ignored. The ] ["apbugs" address is not added to the Cc line of messages from ] [the database automatically because of the potential for mail ] [loops. If you do not include this Cc, your reply may be ig- ] [nored unless you are responding to an explicit request from a ] [developer. Reply only with text; DO NOT SEND ATTACHMENTS! ]