Redirecting the website from one server to another server?

Hello,

Could someone suggest me the ways to redirect a website from one server to another website in another server?

I have one website “X” (IP based e.g http://x.x.x.x/example.html) in one server using IIS and another website “Y” (domain based e.g. www.abc.com ) on another server using Apache. I linked the website X to Y by providing a link for X in Y. Right now, after clicking on the link, it shows the public IP address of X in the address bar. However, I would like to display the web address as www.abc.com/example.html rather than IP address.

Your suggestions are gratefully appreciated.

I have absolutely no idea how to do it in IIS, but what your describing is a reverse proxy.

Or you could of course create a script that downloads the other source and then sends it to the person who requests it.

That should make searching on google a little bit easier for you :slight_smile:

Thank you for your reply. Now, I solved my problem. I am writing the solution that I made for my case so that it may help others.

I made one example.html page in server X (IP Based) that is running with IIS and another file example.php with the following code in the Server Y (domain based)that is running with Apache. Now, I am able to link IP based (e.g x.x.x.x/example.html) file with the domain www.abc.com/example.php instead of IP address.

example.php

<?php
readfile(“http://x.x.x.x/example.html”);
?>