4

I have registered the domain www.posti.sh at nic.sh. The website is on the server www.myskoob.com/postish. Unfortunately, nic.sh does not support frames, i.e. that the domain stays posti.sh as it forwards to www.myskoob.com/postish - so I thought about a URL rewrite on the server.

Unfortunately I have no idea how rewriting works - I am thankful for explanations - but I would also like to ask whether this is generally possible. What I need is:

  • The server needs to recognize that the folder postish is accessed
  • Depending on the file that is opened, it needs to rewrite the url to www.posti.sh/<-according filename here->
  • Also, the server needs to understand that a link to www.posti.sh/about.php links to www.myskoob.com/postish/about.php and likewise for other files - at the moment, when I type in posti.sh/about.php it redirects to http://www.myskoob.com/postishabout.php, which does not exist
  • All this should be possible irrespective of whether the url contains a "www" at the beginning or not
  • A plus but not necessary would be that it does not display the .php extensions

Would that generally be possible? If not, what would be the alternatives? If anyone knows how to do it, any code and/or way to do it would be much appreciated!

6
  • Is there any reason why you can't host the website on the posti.sh server normally? May 18, 2012 at 19:54
  • I only registered a domain, it was no combined package May 18, 2012 at 22:04
  • Can you not point the nameservers for the domain to your existing shared hosting and use it as an addon domain? May 18, 2012 at 22:12
  • Sorry I am afraid I do not understand what that means! Could you elaborate further? May 18, 2012 at 22:17
  • Normally the company you host you website with will provide you with nameservers, you then go to your domain registrar and add those as the domain's nameservers. You then go back to your host and add the domain and point that at a website. What company do you host your website with? May 18, 2012 at 22:26

1 Answer 1

1

Point the DNS to your existing domain (as per toomanyairmiles suggestion in comments of original post) - here is a guide on the Go Daddy website, but the principal is the same.

http://support.godaddy.com/help/article/680/managing-dns-for-your-domain-names

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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