Add separate domain name to Wordpress admin area with htaccess

Posted by Marc on Server Fault See other posts from Server Fault or by Marc
Published on 2013-10-28T08:48:40Z Indexed on 2013/10/28 9:55 UTC
Read the original article Hit count: 288

Filed under:
|
|

I have a Wordpress installation in a seperate folder on my server (meaning it is not in the root folder). I have a htaccess rewrite rule that maps Domain A to folder A. Inside folder A is the Wordpress admin folder, let's call it folder A.B. I tried mapping Domain B to folder A.B., but I can't get it to work properly. When you log in to Wordpress via /admin, you get redirected to /wp-login.php (so from folder A.B. to folder A), maybe that is where I get into trouble. So what I would like to do is this:

Domain A > folder A Domain B > folder A.B

Note that this is not for security purposes, I just like the idea of www.domainb.com instead of www.domaina.com/wp-admin. Can this be done with Wordpress?

© Server Fault or respective owner

Related posts about apache2

Related posts about .htaccess