We help IT Professionals succeed at work.

Keep the original URL when redirected

jeppe_otto
jeppe_otto used Ask the Experts™
on
Hi guys,

 

Looking for advise on how to keep the domain name when forwarding to another domain.

For example, I have two domains, and I would like to have domain www.A.com (example) pointing to www.B.com but when vistor click on www.A.com they are directed to www.B.com however in the URL address bar it will always state www.A.com no matter what link are clicked within the environment of www.B.com.

 Thank you!
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
For this you'll need to use an iframe.

Put this inside your <body> tags and change the http://yoursitehere.com with the site you want to "redirect" to:

<iframe style='position:absolute;z-index:10;top:0;left:0;margin' width='100%' height='100%' scrolling='auto' marginwidth='0' marginheight='0' align='top' frameborder='0' SRC='http://yoursitehere.com' /></iframe>






http://www.blackhatworld.com/blackhat-seo/cloaking-content-generators/26729-keep-original-url-heading-browser-but-redirect.html

Author

Commented:
Perfect, thank you for the quick response!
Jason C. LevineDon't talk to me.

Commented:
You can also do this with server aliasing in addition to an Iframes solution but I would caution you against this.  If you look at the link address above you'll see a lot of references to "blackhat" which is probably a tongue-in-cheek choice of site names but in this case should also serve as a warning.

Whenever you try to mask the true source of content, you run the risk of being severely penalized by Google.  At best, the assumption will be that you are stealing content from another site and site A will receive the penalty.  At worst, both sites will get nailed.

I strongly suggest you do more research on the issue.

Author

Commented:
Ok, thank you for the info Jason, then I will do some more research.