WordPress through development proxy does 301 redirect
-
I am trying to use the Webpack tool for managing my assets on my localhost setup. I have a virtual host set up for my WordPress site, and Webpack offers the ability to proxy a domain so that Webpack assets can be reloaded on the fly. See my issue on Stackoverflow for the the detailed Webpack and vhost set up.
When running the Webpack dev server it is accessible at https://localhost:9090.
When I set up the Webpack proxy to point to another vhost (test.dev) with an index.php and I visit https://localhost:9090 it displays the contents of index.php.
When I set up the Webpack proxy to point to my WordPress vhost (wp.dev) and I visit https://localhost:9090 it immediately does a 301 redirect (looking in Chrome dev tools or Charles debugger) to https://localhost and serves whatever my computer has set at localhost instead. It appears WP is stripping the port from the URL, although I really have no idea what is going on.
My environment is:
Mac OSX El Capitan
Apache/2.4.16 (Unix) default Mac version
Wordpress: 4.4.2
- The topic ‘WordPress through development proxy does 301 redirect’ is closed to new replies.