httpd-users mailing list archives

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

I am trying to redirect http://mydomain.com/test1 to
http://mydomain.com/test2 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 
OurVacationStore.com
Website Administrator
pcampbell@ourvacationstore.com
 

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message