You should create relative links instead of direct links because relative links point to the place where the file is stored only. For example, a relative link like: /website/index.html will always work, no matter what the domain used. In your case you should either change all your website links into relative ones, or use direct links with your newly created domain.