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: [email protected] ReportedBy: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
