You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2003/08/18 20:07:40 UTC
DO NOT REPLY [Bug 22529] New: -
RewriteRule problem when the URI is the same as the document root
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=22529>.
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=22529
RewriteRule problem when the URI is the same as the document root
Summary: RewriteRule problem when the URI is the same as the
document root
Product: Apache httpd-1.3
Version: 1.3.28
Platform: PC
OS/Version: Windows NT/2K
Status: NEW
Severity: Enhancement
Priority: Other
Component: mod_rewrite
AssignedTo: bugs@httpd.apache.org
ReportedBy: pippo@sitepointforums.com
Hi there,
let's suppose I have this inside my httpd.conf:
...
<VirtualHost *:80>
ServerAdmin webmaster@example.com
DocumentRoot /www/htdocs
ServerName example.com
ServerAlias www.example.com
ErrorLog /www/logs/error_log
CustomLog /www/logs/access_log common
RewriteEngine On
RewriteRule ^/something/from/?$ /www/htdocs/index.php [L]
</VirtualHost>
...
That's work fine, but if I have this directory:
/www/htdocs/www/htdocs/index.php
a request for example.com/something/from
will be redirected internally to /www/htdocs/index.php
and not
/www/htdocs/www/htdocs/index.php
In pratice if I have a subdirectory path that is the same as my document root,
the redirection is not working fine...in my opinion obviously.
BTW,
RewriteRule ^/something/from/?$ /index.php [L]
will call /www/htdocs/index.php which is fine.
Hope it was clear :-).
Thank you,
Andrea Rossignoli
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org