I have a bit of an issue that is hard to find an answer on. My WordPress structure is like follows:
- Main Site: domain.com
- Sub-Site: category1.domain.com
- Sub-Site: category2.domain.com
All of these point to the same WordPress installation with the same database. The difference is that on category1.domain.com I query only the posts in the category1 category, same on category2.domain.com etc.
I am NOT running a Multisite setup because it seems to be something different from what I want. (Correct me if I'm wrong)
Anyway, this setup works fine but logging in on the subdomains does not work properly. Users can login on domain.com and stay on the same page they logged in on, but trying to login on category1.domain.com automatically redirects them to domain.com/wp-admin.
The reason why I don't want to have a centralized login page on my main domain.com is because I want a jQuery popup box with a login form on every page on my site, including the subdomains.
It seems that it might have to do with the WordPress Address (URL) and Site Address (URL) settings in wp-admin -> Settings -> General, but I'm unsure how I can set multiple subdomains in this setting.
Does anyone have any idea on how I might get this setup to work? Or am I better off taking a different approach (perhaps using Multisite after all?)