httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 36509] New: - mod_rewrite incorrectly expands userdir URLs?
Date Mon, 05 Sep 2005 18:04:30 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=36509>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=36509

           Summary: mod_rewrite incorrectly expands userdir URLs?
           Product: Apache httpd-2.0
           Version: 2.0.54
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_rewrite
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: alex@weej.com


Example: 

http://localhost/~alex/testsite/blahblahblah

I have a .htaccess file in /home/alex/public_html/testsite that reads:

RewriteEngine On
#RewriteBase /~alex/testsite
RewriteRule ^(.*?)$ url-handler.php

Now according to the manual:

"The RewriteBase directive explicitly sets the base URL for per-directory
rewrites. As you will see below, RewriteRule can be used in per-directory config
files (.htaccess). There it will act locally, i.e., the local directory prefix
is stripped at this stage of processing and your rewriting rules act only on the
remainder. At the end it is automatically added back to the path."

If I leave the RewriteBase uncommented, I get this: "The requested URL
/home/alex/public_html/testsite/url-handler.php was not found on this server."

Seems like some funny behaviour. Please correct me if I am wrong but this setup
works flawlessly with addresses without the ~ as far as I can tell.

Cheers

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

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message