Keywords: WordPress Multisite - Google Cloud Platform - How to - Other
I have found several referrences to a retired article around vhosts, that basically leads nowhere.
I am trying to set up a sub domain called "static.mywebsite.com" which would point to /opt/bitnami/apps/wordpress/htdocs/wp-content, then place
wp-config.php to create a nice cookieless solution in an elegant way.
The codex article on wordpress (https://codex.wordpress.org/WPMU_Ignore_Some_Subdomains) says
"If you are able to configure your VirtualHost file this may be the best method. It provides the ability to serve the subdomain out of any directory on your server.
To do this you simply need to make sure that the domain you do not want WPMS to handle is loaded before the WPMS primary domain that uses the wildcard."
So I tried placing the following (URL edited) at the front of
I have set my DNS to have an A record for the subdomain pointing to the server IP, and when I access
subdomain.website.com/wp-content/uploads/2018/12/file.jpg, it works but I need it to be
subdomain.website.com/uploads/2018/12/file.jpg to work. If I access it, it just redirects me to the main domain, so I think there is another vhosts somewhere loading before this one. Any idea how to get this done?