httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Patrick Campbell <>
Subject [users@httpd] Help with mod_alias/Redirect
Date Tue, 14 Sep 2004 22:30:05 GMT

I am trying to redirect to where mydomain is 1 of 100 virtual domains  on my
system.  I know that I can use mod_rewrite however it seems that I think I
should be able to implement this more easily using mod_alias and the
Redirect directive?

Here is what I'm trying within .htaccess in the root directory of each
virtual domain:

Redirect /test1 http://%{SERVER_NAME}/test2

This yields nothing in error_log and in access_log it shows I am accessing
test1 (not test2) 

My proxy server says:
Error while trying to retrieve the URL: http://%{server_name}/test/ so it
seems the URL isn't getting passed/parsed.

Is %(SERVER_NAME) something I can use within a .htaccess file with a
Redirect directive?  Am I using improper syntax?

Thanks in advance.

Patrick Campbell
Website Administrator

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message