I have a multistore Magento 2 installation running and have overcome most of the multisite issues. Site is set up like this:
A. Base Guest Domain = example.com
B. Logged in Domain = example.com / prices
Catalog and users are shared. Themes are different with different blocks showing.
Only logged in users are able to access the price domain and see pricing for our products.
The issue will occur if a logged in user copy and pastes a link for example.com/prices/a.html and sends it to a user not logged in. I would like to re direct or rewrite (possibly using htaccess and cookies?) to the base domain so the link will redirect a not logged in user to example.com/a.html
Another issue is a logged in user doesn't go to the /price site and doesn't see the pricing on the base site. I would like to also re direct or rewrite them.
Is there a cookie created at login that only logged in users receive that I can use for htaccess?
I hope this makes sense and any suggestions are greatly appreciated.
Cache file /home/queryxchang/public_html/apps/frontend/config/../cache/-q-10-226138-redirect-to-same-url-on-base-domain-if-user-not-logged-in-multisite-magento-2- could not be written