Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I'm trying to point sub.domain1.com to sub.domain2.com.

They are both hosted on different servers.

I've tried changing the CNAME, but that is giving me a "You don't have permission." error when I go to sub.domain1.com in my browser.

Currently, I'm url masking sub.domain1.com to sub.domain2.com, but I don't want to do this for various reasons.

I would like sub.domain1.com url to remain in the address bar.

This is for my mobile site, just an fyi.

share|improve this question
    
What do you mean by "url masking"? –  w3d May 11 '12 at 16:25
    
My registrar gives me the option to forward one url to another. So you go to URL1 which takes you to URL2, but you only see URL1 in the address bar of the browser. This works for me, but it doesn't feel kosher, if you know what I mean. –  James May 11 '12 at 16:39
    
Ah, this sounds like framed forwarding? This won't be particularly good for SEO, if that is a concern. –  w3d May 11 '12 at 17:16
    
I think I've seen it called stealth forwarding as well, but yeah, the SEO implications are the major concern here. –  James May 11 '12 at 17:29
add comment

2 Answers

Fast and dirty way: put an index on sub.domain1.com and do an iframe to sub.domain2.com

share|improve this answer
    
Thanks for the reply, but I think that's a little too dirty. It would work though. –  James May 11 '12 at 16:36
add comment

You need to set up a parked domain at your sub.domain2.com server. Then set the NAMESERVERS on sub.domain1.com to point to domain2.

share|improve this answer
    
Thanks for your reply. Would this have any effect on domain1 and domain2? Keep in mind that I'm only trying to reroute the subdomain. –  James May 11 '12 at 16:40
    
Ah, sorry, this would ordinarily affect the whole domain. I'm not sure how this could be done for a particular subdomain alone. –  w3d May 11 '12 at 17:18
    
I believe my best solution is to get a new host server set up, and change the A record for sub.domain1.com so that it points to the IP of the server. –  James May 11 '12 at 17:30
    
You might need to set up something on the domain2.com server so that it knows to accept requests to sub.domain1.com (which is what you are doing when setting up a 'parked domain') - although if you have your own dedicated server with its own IP address...? –  w3d May 11 '12 at 19:33
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.