I have created the store/website in the backend and linked it to the second domain following tutorials on the internet, However the second domain always redirects to the main domain and I can't figure out what the problem is, I have cleared the cache and restarted apache but still no luck, any ideas of what else could be causing the issue. I have the index.php file in the directory the second domain is pointing too and changed the links so it recognises where the main magento files are but this doesn't seem to work. If anyone could recommend a good tutorial or help out that would be great.
Thanks.