Keywords: WordPress Multisite - Google Cloud Platform - Technical issue - Other
bnsupport ID: 208a1c1b-0878-794f-20aa-e3b98ea3c4fd
Description:
We believe this issue is related to how a bitnami wordpress multisite installation is processing inbound requests from redirected URLs, and might be something with the .htaccess configuration in /opt/bitnami/apps/wordpress/conf/httpd-app.conf.
In trying to redirect traffic from an old URL to a new URL, we have the following:
In .htaccess on old domain (crestcomleadership.com):
Redirect 301 /br/testimonials https://crestcom.com
This should take any request for http://crestcomleadership.com/br/testimonials and direct the user to https://crestcom.com.
Instead, it's taking the user to https://crestcom.com/testimonials, which is not a valid URL on this new domain & website, and produces a No Results Found/404 error from WordPress.
We cannot figure out how that /testimonials is being included or "passed on", resulting in the request for the invalid url (https://crestcom.com/testimonials), instead of the valid URL in the redirect rule (https://crestcom.com).
Another example:
In .htaccess on old domain (crestcomleadership.com):
Redirect 301 /gb/results https://crestcom.com
This should take any request for http://crestcomleadership.com/gb/results and direct the user to https://crestcom.com.
Instead, it's taking the user to https://crestcom.com/results, which is not a valid URL on this new domain & website, and produces a No Results Found/404 error from WordPress. We can't figure out why that "/results" is being included.
We thought this might be related to sunrise.php, which is part of Multisite and looks like it will make best guesses about a URL and redirect a user to a close match instead of a 404 error. We tried softly disabling sunrise by changing the filename to _sunrise.php in /opt/bitnami/apps/wordpress/htdocs/wp-content/, but that did not seem to have any impact.
Has anyone seen this before or know where we can look for more information? Are there any log files that might have information on how those incoming requests are being processed?