How to have wp-admin in a separate subdomain?
I want to have wp-admin and related stuff in a separate subdomain, let’s say:
example.com/ where all the posts are (no-www)
http://www.example.com/wp-admin (forced www)
http://www.example.com/wp-login.php (forced www)
http://www.example.com/register (forced www)
http://www.example.com/somepage (forced www)
it.example.com/ all the posts (no-www)
http://www.it.example.com/wp-admin (forced www)
And so on.
I did some of this in .htaccess, but I’m in troubles with the POST data sent from (www.) wp-admin to the default (no-www) address, just like this:
1. http://www.example.com/wp-login.php is requested (via GET)
2. when the login form is sent, example.com/wp-login.php is requested (via POST)
3. .htaccess redirects no-www to yes-www URL.
4. POST data is lost.
I need to mantain all the “dinamic stuff” in a diferent subdomain becouse I’m using multiple apache and mysql servers and I want to keep it synced.
May it be posible editing site_url() and network_site_url() to answer with a no-www address when it is from the font end, and with a forced-www one otherwise?
- The topic ‘How to have wp-admin in a separate subdomain?’ is closed to new replies.