amitdgr Posted March 17, 2009 Share Posted March 17, 2009 Hi, This is my first post here. Hope I got into the right section. I need to know how to mask a domain either through htaccess or through code. Say suppose I am having a blog like this http://test.domain.com/ which is working fine. Now I have purchased a domain name www.newdomain.com and I want to mask my blog url. So if someone goes to http://newdomain.com , he/she should be redirected to test.domain.com but the adressbar should show http://newdomain.com Thanks in Advance Quote Link to comment https://forums.phpfreaks.com/topic/149785-how-do-i-mask-my-domain-name/ Share on other sites More sharing options...
Daniel0 Posted March 17, 2009 Share Posted March 17, 2009 Why would you want to do that? Can't you just setup both domains on the same server? Quote Link to comment https://forums.phpfreaks.com/topic/149785-how-do-i-mask-my-domain-name/#findComment-786539 Share on other sites More sharing options...
Festy Posted March 17, 2009 Share Posted March 17, 2009 .......and if you still want to mask, then you'll have to use URL rewriting in your htaccess file. Quote Link to comment https://forums.phpfreaks.com/topic/149785-how-do-i-mask-my-domain-name/#findComment-786564 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.