Proper setup of subdirectory install with subdomain pointing to it
-
I would appreciate help with how to properly setup a subdirectory install of WordPress and a subdomain pointing to it.
Facts:
1. I have a non-WordPress website on the root of my webhosting (https://mywebsite.com).
2. Today I installed WordPress into a subdirectory (https://mywebsite.com/fun).
3. I have a separate domain name (https://someotherwebsite.com) for which I’ve configured the server to handle a subdomain (https://fun.someotherwebsite.com) and have it properly routing to https://mywebsite.com/fun. In other words, when I got to https://fun.someotherwebsite.com, the WordPress install at https://mywebsite.com/fun shows up; the URL shows as fun.mywebsite.com.
Excellent so far…
BUT here is where I have issues and would appreciate your help:
1. When I go to login to WordPress (https://fun.someotherwebsite.com/wp-admin), the URL changes to https://mywebsite.com/fun/wp-login.php. Other than the URL changing to the root/subdirectory, it works fine. However, I want the URL base to stay https://fun.someotherwebsite.com.
2. If I change the “Site Address (URL)” from what it was at install (https://mywebsite.com/fun) to https://fun.someotherwebsite.com, it breaks stuff. I either can’t login to WordPress anymore OR I can’t edit themes
I’ve read “Giving WordPress Its Own Directory” and “Changing the Site URL“, but I’m not clear on how either of these apply completely to this situation.
Please help!
- The topic ‘Proper setup of subdirectory install with subdomain pointing to it’ is closed to new replies.