Forum Moderators: phranque

Message Too Old, No Replies

Howto redirect page but domain name remain same?

         

kenq

2:42 am on Jan 12, 2010 (gmt 0)

10+ Year Member



I have a domain example: www.abc.com

My contents is located at www.xyz.com in different hosting server.

How can i redirect the page so that when user key in www.abc.com, they will see the content display of files inside www.xyx.com server but the domain name at the above browser still displaying www.abc.com.

Thanks.

Kenq

phranque

3:43 am on Jan 12, 2010 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



welcome to WebmasterWorld [webmasterworld.com], kenq!

you can do that using something like mod_proxy [httpd.apache.org].

kenq

11:34 am on Jan 12, 2010 (gmt 0)

10+ Year Member



thx for your reply phranque !

Is there any other method which can be do by coding of php ?

I am not familiar with mod_proxy.

Thanks again.

phranque

12:14 pm on Jan 12, 2010 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



you can do the HTTP Get from the external domain from within the php script and then serve the document.