2

Because, since the redirect is unconditional, you end up redirecting again after the URL has been rewritten to index.php (the WordPress front-controller). When you request /somepage.php: You are redirected to /somepage (by the first rule). The redirect response is sent back to the client. On the second request, /somepage is internally rewritten to /index....


1

Since siteA.com and siteB.com point to different vHosts/servers then you can remove all the existing directives in siteB.com/.htaccess and use the simpler mod_alias Redirect and RedirectMatch directives. For example: # siteB.com/.htaccess # Specific redirects Redirect 301 /foo https://siteA.com/another-foo Redirect 301 /bar https://siteA.com/another-bar ...


1

Your nginx is trying to connect to localhost inside the container. You have to either use host networking for the container or you need to link the nginx container to the WordPress container. In the docker-compose file that would be: external_links: - wordpress:wordpress Then you can use proxy_pass http://wordpress/ in your nginx config. You don't need ...


Only top voted, non community-wiki answers of a minimum length are eligible