Hi Izzy, thank you for your help.
I am researching everything you gave me and although it is all very new to me, I am sure I will be able to make the website work just fine. Just takes time I guess. Also I don't think I fully explained how I would like this to work.
I do want visitors to go to the main domain: http://www.domain.com
where there will be a couple of pages served. I don't want them redirected right away. I have in fact setup a referrer to another page as you suggested, both at the DNS server and using a referrer in .htaccess for other websites.
However, the subdomains http://store.domain.com
should only be accessed from the main domain http://www.domain.com
. So the only referrer page/domain acceptable to http://store.domain.com
is the main domain http://www.domain.com
So if anyone tries to access the "Store" from another webpage, or directly by entering a URL etc, they will not be able to.
Hopefully I will also be able to setup something in .htaccess at http(s)://store.domain.com to "force" the visitor to visit the main domain http://www.domain.com
and start from there first. Then they can come back to the "Store" but only when clicking a link at the main domain, www.domain.com
Basically I need to be able to control the traffic.
URL ----> http://www.domain.com
(pages served) ----> Links to Store ----> http(s)://store.domain.com
URL ----> http(s)://store.domain.com ----> No Direct Access Allowed!!
-> Sent to ----> http://www.domain.com
I hope I was able to clarify that a bit more.