MAMP localhost redirect
I develop sites in MAMP on my local network so I've decided to setup port-forwarding to open up my external network and allow HTTP traffic to go directly to my localhost.
Everything is working fine and I can access my MAMP folder using my static IP but,
All my WordPress installs are using http://localhost
as the prefix and the images/css/js aren't working when accessing the site outside the local network.
Is there anyway I can tell MAMP to redirect ALL localhost traffic to my static IP? I was modifying the vhosts file but to no avail.
Any help开发者_如何学编程 would be greatly appreciated
I know this isn't a direct answer to your question, but I've had the same issue and have successfully used this plugin to migrate sites from localhost to the production domain. http://wordpress.org/extend/plugins/search-and-replace/.
Note: I've never had any issues, but please backup your db first. Better safe than sorry.
精彩评论