[Ilugc] url redirection

  • From: askgopal@xxxxxxxx (Gopalarathnam V.)
  • Date: 02 Feb 2004 15:39:55 +0530

Sarananan-

The Redirect* directives of Apache matches only the URL and not the URI.
i.e., you'll can match '/somepath' and redirect it to some other URI.

If you want to redirect only http://server1, specify the Redirect
directive in that virtualhost configuration.

Reading a bit of Apache manual on Redirect directive might help you!

On Mon, 2004-02-02 at 15:30, saravanan ganapathy wrote:

Thx Suraj.

My requirement is like this

http://server1/  to http://server2:8080/

 where server1 is CNAME for server2.

If I use 
  RedirectMatch http://server1/ http://server2:8080/
the redirection doesn't works. 

If I use
 RedirectMatch / http://server2:8080/ ;.

Then http://server1/  redirected to
http://server2:8080/. ;

But here, http://server2/ also redirected to
http://server2:8080/
I just want to redirect http://server1/ only.I don't
want http://server2/ to be redirected.

Pls help me.

Sarav

 


--- Suraj <suraj@xxxxxxxxxxx> wrote:
Gopalarathnam V. wrote on Tue, Jan 27, 2004 at
12:09:23PM +0530: 
,----
| 2) If you're  using Apache web server,  read the
doc  on URL rewriting
| (mod_rewrite).
`----

or   if   the   redirect    is   simple   (like  
http://foo.com/   to
http://bar.foo.com/), you can simply use
'RedirectMatch'.

PS:  Please  remove  unnecessary  quote  of earlier 
mails  from  your
replies.

thanks,

  -Suraj

-- 

+--------------------------------------------------<suraj@xxxxxxxxxxx>--+
|Saving hatred of the wise, is a million times
better than              |
|intimacy of fools, who are more dangerous to deal  
                   |
|(harmful friendship - 6), Thirukkural              
                   |

+--<http://www.symonds.net/~suraj/>-------------------------------------+
_______________________________________________
To unsubscribe, email
ilugc-request@xxxxxxxxxxxxxxxxxx with 
"unsubscribe <password> address"
in the subject or body of the message.  
http://www.aero.iitm.ernet.in/mailman/listinfo/ilugc


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/
-- 
Gopalarathnam V.                |  #include <disclaimer.h>
<askgopal at sify period com>   |



Other related posts: