durusmail: quixote-users: redirect to relative url and rewrite rules
redirect to relative url and rewrite rules
2004-02-09
redirect to relative url and rewrite rules
A.M. Kuchling
2004-02-09
On Sun, Feb 01, 2004 at 07:00:33PM +0100, Ksenia Marasanova wrote:
> Is this some error in my rewrite rules or a normal HTTPRequest
> behavior?

HTTPRequest is looking at the SCRIPT_NAME environment variable.  According
to the mod_rewrite documentation, SCRIPT_NAME is set to the physical path of
the script being run; the non-standard SCRIPT_URL holds the requested path
(e.g. "/foo/bar/").  Perhaps HTTPRequest.get_path() should check for
SCRIPT_URL and use it if present.

>In that case, how do you people redirect without hardcoding
> the url?

I do it by not using mod_rewrite. :)

--amk


reply