I'm going to serve static content such as images and javascripts from a seperate cookiesless domain instead from loading it directly from my main domain. I've bought mystatic.com and added this as an Addon domain in cPanel. I've set the path to the same path as my main domain (mysite.com), so I can access files easily (mystatic.com/images/bla.jpg is the same as mysite.com/images/bla.jpg). The problem now is, that when I visit mystatic.com, I see the same site as mysite.com. I don't want people to see anything when they visit mystatic.com. How can I do that? I thought about a redirect, but I'm not sure about this. So I want: when someone visits mystatic.com -> he sees white page When he visits mysite.com -> he ofcourse sees the website, with static content served from mystatic.com Thanks for the help!
Solved the issue myself. I just pointed the addon domain to a new path and put an empty index file there. Then used subdomains. Topic can be closed!
You could also use a .htaccess redirection. Maybe the best way. Empty index.html and index.php is a good solution too.
You can use .htaccess to allow access only from you new domain and redirect/show an empty page to everyone else.
use Google appengine to server static files. Fast, Free, reliable and serve from nearest visitor's location. http://www.ivankristianto.com/featu...-files-using-google-app-engine-for-free/1420/
Happy that u have the error fixed, but getting a static domain and adding it to same server (host) as addon domain will result in load to the same physical server it would not be of much use at all as all requests will be given to same server and in high traffic, it can be a bottleneck !