How to redirect a m.domain.com/abc to a ip address 123.123.123.123/abc?
Hi,
Recently I need to redirect domain name that is a mobile minisite called m.domain.com/abc to external hosting web server ip with like 123.123.123.123/abc in our apache web server. This website is hosting in external. Our apache is 2.0.53, because I am new in Linux, so I don't know how to work out this. I want to know that how can I achieve this? Is it just use the DNS to map it or need to config our apache to work out this? I really urgent to know what can I do for it? Thank you for your kindly help. |
If you want everything in m.domain.com to be directed to the external host just put in a DNS record pointing to the appropriate IP.
|
The easiest way to do this by setting redirection using HTML. Please have a try with the steps mentioned in the following link. It should work for you.
http://snippets.dzone.com/posts/show/384 If you need any other solution, please let me now. |
Thanks for your reply first. I just want to redirect only this domain name in m.domain.com/abc to external hosting server with ip 123.123.123.123/abc. but not m.domain.com. Because our webserver hosting all m.domain.com website but the other user want to build a mobile mini site under this domain m.domain.com like m.domain.com/abc and must host it at external web server.
|
Thanks ComputerErik and blue_print. I want to know that the rewrite method in apache is the only way to achieve it? Have the simpler way? Because we have many mobile mini site will under m.domain.com like m.domain.com/a, m.domain.com/b and m.domain.com/c and all of that must be hosted in external web server.
I also tried to load the module on our apache but it give me the error message after the restart httpd said cannot loadmodule mod_rewrite.so So, I want to know have any other method to achieve it or how can I load the module in my apache server to enable rewrite funciton for doing this and how to use rewrite to achieve it? Thank you so much. |
Hi, Anybody can answer me?
|
All times are GMT -5. The time now is 11:54 PM. |