[UPHPU] load-balanced 301 redirects

Joseph Scott joseph at randomnetworks.com
Mon Mar 31 13:48:06 MDT 2008


On Mar 31, 2008, at 12:04 PM, Kyle Waters wrote:

> For this situation I want to suggest something on the client end  
> instead of the server end.  It's not perfect but will make it so  
> you can have the same code on both servers.  You could add an entry  
> to the host file on the machines you use to test the development  
> enviroment, or you could probably work something out with foxyproxy 
> (ie set up a proxy server that has a modified hosts file) so it's  
> easy to change back and forth.



For WordPress.com development I edit my hosts file.  It's pretty  
painless, add one line and I can point a blog to my development  
server.  When I need to test that blog on the live servers I just  
delete or comment out that line in the hosts file.

The only problem I've run into is that sometimes Firefox appears to  
cache DNS queries, so it occasionally requires a restart to pick  
hosts file changes.

--
Joseph Scott
joseph at randomnetworks.com
http://joseph.randomnetworks.com/





More information about the UPHPU mailing list