>Number: 3855 >Category: mod_rewrite >Synopsis: Existing RewriteBase and RewriteRule commands embedded in ><directory></directory> stopped working after upgrading from 1.3.3 to 1.3.4 >Confidential: no >Severity: non-critical >Priority: medium >Responsible: apache >State: open >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Sun Feb 7 14:40:00 PST 1999 >Last-Modified: >Originator: [EMAIL PROTECTED] >Organization: apache >Release: 1.3.4 >Environment: linux 2.0.36 gcc >Description: <Directory /usr/www/apache/share/htdocs/users> RewriteEngine On RewriteBase /users RewriteRule ^(.+) http://w3.one.net/~$1 [R,L] </Directory>
This directive which used to rewrite http://w3.one.net/users/username to http://w3.one.net/~username using the above in access.conf stopped working after an upgrade. We have since replaced it with a RewriteRule in httpd.conf but we were unable to get any rewrites inside <directory></directory> to even be executed. >How-To-Repeat: Use the config directive in the previous box. >Fix: RewriteRule ^/users/(.+) http://w3.one.net/~$1 [R,L] we used the above to replace it >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 leave the subject line UNCHANGED. This is not done] [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! ]