We help IT Professionals succeed at work.

how to redirect a web page to another server

Medium Priority
660 Views
Last Modified: 2012-08-13
The A-Record of my main website (www.example.com) points to my web server.
That works fine.

Recently I created a microsite but it is published on another server.
There are no A Records / domain names pointing to this other server.

I want my customers to go to www.example.com/summertour and see the web page that is on this second server.

My IT guy created a 'redirect' to make this work, but the visitor ends up seeing the IP address in the URL.

How can I get the site on my remote server to show up when a visitor goes to www.example.com/summertour AND keep the URL instead of showing the IP Address in the browser address bar?
Comment
Watch Question

Commented:
Short answer: Iframe with 100% height and width on your server, displaying the remote site.

You can not modify what goes into the url bar on a remote server. If you direct the traffic away from your server the url will change.

Commented:
This is deprecated HTML and not recommended at all, but it will work. This goes into  www.example.com/summertour/index.html :

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<title>Summer tour</title>
</head>
<frameset cols="*" frameborder="0" border="0" framespacing="0">
	<frame name="content" src="http://www.google.com/" marginheight="0" marginwidth="0" scrolling="auto" noresize>
<noframes>
<p>Redirecting...</p>
<script type="text/javascript">
<!--
window.location = "http://www.google.com/"
//-->
</script>
</noframes>
</frameset>
</html>

Open in new window


Change google to the correct address.

The real solution is to host the micro site at www.example.com/summertour and not at some external server.
Would it not be simpler to handle this with DNS rather than HTML?  You could create an ALIAS DNS record named summertour.example.com that points to the page on your remote server.  That way the address in the bar will only show summertour.example.com and the redirection should work as you intend.

hth!
:)
E C
CERTIFIED EXPERT

Author

Commented:
you mean create a subdomain?
No, just an ALIAS record under the example.com domain.  You might know it as a CNAME record.

Here is a Microsoft article about ALIAS type DNS records:
http://support.microsoft.com/kb/168322

:)
My apologies, I missed part of your original description: "There are no A Records / domain names pointing to this other server."  An ALIAS record points to an existing A record, either on your own DNS domain or another domain, but it must be pointed at an existing A record.

So forget about the ALIAS record; just create a new A record (summertour.example.com) that points to the IP address of the other server.

:)
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
E C
CERTIFIED EXPERT

Author

Commented:
Hello everyone.
Their IT department created an A record for summertour.example.com

Now when you go to that address, the site loads BUT ... the URL immediately switches to the IP Address.
???

I'm thinking they did something wrong on their end?
What do you think?

I've created A records before and I've never seen this happen.
They are hosting multiple sites on this remote server, so I told them to use host headers on IIS.
They must have figured that part out at least, because the correct site IS loading in my browser.

Just dont understand why the address bar in my browser is changing to the IP Address.
That is rather odd.  Since it's public anyway, any chance we can get the actual address?  That way we can verify the symptoms on our side, run DNS tests, look at the HTML code, etc.

:)
E C
CERTIFIED EXPERT

Author

Commented:
i dont want to post the domain on EE because it will remain here forever, frozen in time ;-)

so instead, go to this website:
http://www.devlabs.us/temp/ee-help.html

there you will find the actual domain name I am referring to.

thanks for your help everyone!

Commented:
The server doesn't seem to be responding. I tried pinging it (208.109.xxx.xx) and get only timeouts.
E C
CERTIFIED EXPERT

Author

Commented:
i sent them an email last night. maybe they are messing w dns.
...either that or they've really screwed it up ;-)

thanks again for your help!
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
E C
CERTIFIED EXPERT

Author

Commented:
Thanks for your help! We ended up creating a subdomain (subdomain.example.com), and after ensuring host headers were properly configured on the web server, everything is working fine now. Thank You!!
You're very welcome; glad we could help!

:)
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.