I registered a domain name, let's say for example my-super-project.com, and I've got my site hosted on, say spproject.megahost.com.

When I enter my-super-project.com, I get redirected to my site, but the address doesn't show my-super-project.com, but spproject.megahost.com.

How do I keep that from happening?

  • Does your host use cPanel? – JohnD Sep 18 '11 at 16:35
  • @JohnD I don't think so, but to be honest I can't be sure. – Eldros Sep 18 '11 at 18:09

You need to contact the support for your hosting company to see how you can configure your site so that it lives at the my-super-project.com. What is the hosting company?

  • First, would it help? I mean the registrar and the hosting company are two different entities. – Eldros Sep 19 '11 at 8:53
  • Yes. You configure your domain at the registrar to use your hosting company's DNS server. You then do more configuration at the hosting company. – paulmorriss Sep 19 '11 at 8:55
  • Ok, I read that my host supports only A-record and not Nameserver, C-name or MX records. And I fear that my registrar uses MX records (I'm not sure)... – Eldros Oct 8 '11 at 8:05

You can set up a URL mask to show the address as my-super-project.com, however, this results in showing the same url on every page. This is the problem I am having. I can rewrite urls using mod_rewrite in apache, but I can't figure out how to redirect my-super-project.com to spproject.megahost.com and see my-super-project.com/FILESTRUCTURE

I would love an answer on this. Sorry I couldn't be of help. You can see the MASK in action here.


EDIT: I'd like to note that a mask is not search engine friendly either.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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