Click to See Complete Forum and Search --> : URL redirection. on Apache.!!!!!!!!!!!!!!!!!!!!!!!!
joelim
12-14-2000, 10:03 PM
does anyone knows how to do redirection URL on Apache. Linux redhat 6.2
for example
aaa.com in ns.aaa.com
bbb.com in ns.bb.com
so when surffer visit www.aaa.com, (http://www.aaa.com,) the apache will automatically bring them to www.bbb.com. (http://www.bbb.com.)
please do help!
thanks!
Death on Wheels
12-15-2000, 05:25 AM
That sounds like something you'd have to do with the nameserver rather than the web server.
------------------
Kurt Weber
Shell scripts? Shell scripts? We don't NEED no stinkin' shell scripts!
White, heterosexual, middle-class, and proud!
I've never understood why Bill Gates would name his company after his penis.
Sweede
12-15-2000, 12:55 PM
sounds like something thats in the manual.
http://httpd.apache.org/docs/mod/mod_alias.html#redirect
if this wont do it, this will. http://httpd.apache.org/docs/misc/rewriteguide.html
joelim
12-18-2000, 10:44 PM
my case is
i have two server which is
ns1.aaa.com
ns2.aaa.com
and
ns4.aaa.com
ns5.aaa.com
and my configuration is, i put the web page in ns1.aaa.com but the mail box will in ns5.aaa.com.
but the main problem is, if i type www.aaa.com, (http://www.aaa.com,) of coz it will goes to ns1. but if i type only aaa.com. it will goes to ns4.
so, i like to do redirection, when ppl type aaa.com, the system will redirect it from ns4 to ns1.
thanks anyway , guys!
njcajun
12-19-2000, 11:01 AM
Have you looked into mod_rewrite? Go to the Apache site and check that out. Might be what you need.
------------------
...meanwhile, I remain...
...The RedHatted Stepchild...
joelim
12-19-2000, 11:13 PM
sir, where can i get this file mod_rewrite?
please do let me know, thank you very much!