DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13486>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13486 multiple slashes in DocumentRoot are not handled properly by mod_rewrite in per-dir mode Summary: multiple slashes in DocumentRoot are not handled properly by mod_rewrite in per-dir mode Product: Apache httpd-1.3 Version: 1.3.26 Platform: PC OS/Version: Linux Status: NEW Severity: Normal Priority: Other Component: mod_rewrite AssignedTo: bugs@httpd.apache.org ReportedBy: [EMAIL PROTECTED] When using rules from .htaccess (switching to per-dir mode) and as DocumentRoot something like: DocumentRoot /var/www//rewrite The URL given for actual processing is not what was expected. Example (requesting the / of the site): ---->> httpd.conf ... DocumentRoot /var/www//rewrite ... ---->> end of httpd.conf ---->> .htaccess RewriteEngine on RewriteRule ^/$ /url_handle.php [L] ---->> end of .htaccess ---->> rewrite_log ... [per-dir /var/www/rewrite/] add path-info postfix: /var/www//rewrite - > /var/www//rewrite/ [per-dir /var/www/rewrite/] applying pattern '^/$' to uri '/var/www//rewrite/' [per-dir /var/www/rewrite/] pass through /var/www//rewrite ... ---->> End of rewrite_log as we see in the example above the pattern was applied to the string "/var/www//rewrite/", instead of "/" as we could think, because strncmp function used in mod_rewrite considered different the two strings /var/www//rewrite and /var/www/rewrite. Actually strncmp was right and probably it's a question of bad style - having extra slashes in DocumentRoot path, but there is no caution of not doing so in documentation. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]