I have a wordpress site <subdomain>.<mysite>.com and I want to make all the links accessible from <mysite>.com/<subdomain>. What's the best way to accomplish this?
As I understand, I probably can't set this up in the Opalstack control panel as a domain with the routes routing from /<subdomain> to the wordpress app in addition to a site set up purely with the subdomain pointing to the app, because wordpress only supports one url.
So my thought is then just to HTTP 302 everyone who visits <mysite>.com/<subdomain> by editing the
.htaccess file and using something like:
RedirectMatch "^/subdomain(.*)" "https://<subdomain>.<mysite.com>$1"
This seems to work. Is this the best way? Ideally a solution would be opaque to the user (i.e. no redirect), but this functions...