Currently I have admin.mydomain.com mapping to an install of wordpress at mydomain.com, and then i am using mod_rewrite to redirect from the subdomain to the wp-admin directory.
This kind of works ok, but i'd like to do the following...
1. not allow direct access to /wp-admin/ at all, only allow logins on my subdomain
2. make an IP whitelist of who can access the subdomain
3. when clicking "view site" or previews or whatever have them go to domain.com and not admin.domain.com as it takes you back to the login screen.
I've read a LOT of conflicting information on how possible using a subdomain is, and I'd like to configure this using apache and ubuntu rather than use plugins. If it's only possibel to do the above through plugins though I'm willing ot give them a go if anyone has any suggestions.
Thanks in advance for any help, much appreciated if anyone can point me in the right direction.