user2400280
user2400280

Reputation: 3

Forward a subdomain to another server/domain's subdomain

I have two domains on two different servers, both with the same subdomain:
subd.domain1.com (Linux Server)
subd.domain2.com (ASP .NET Server)
This is why I'm doing this


What I need to do is have subd.domain1.com be populated by the content at subd.domain2.com.

In other words, I'd like to mask subd.domain2.com with subd.domain1.com.

I tried a simple A-name with the IP of domain2.com (just a random shot before searching, thought there could be some hidden functionality for this in DNS settings). Also I messed around with 301 Redirects using mod_rewrite. I really don't know what the best way to do this would be (if I can), and my searches honestly aren't helping.

Upvotes: 0

Views: 228

Answers (2)

Milad Abooali
Milad Abooali

Reputation: 728

Iframe ! Content that is in an iframe is NOT indexed as part of the url by the search engines -- because the iframe content is at another url.

You can use simple php file to make it, (if your target page .php file):

<?PHP include('http://www.url/to/file');?> 

And if the page .htm you can add this line to .htaccess:

AddType application/x-httpd-php .html 

then you can include .htm as .php .

Upvotes: 0

konnection
konnection

Reputation: 433

Frames allow a visual HTML Browser window to be split into segments, each of which can show a different document. More Info

In the context of a web browser, a frame is a part of a web page or browser window which displays content independent of its container, with the ability to load content independently. The HTML or media elements that go in a frame may or may not come from the same web site as the other elements of content on display.More Info

W3C iframe Info

Enjoy

Upvotes: 1

Related Questions