2014年6月30日 星期一

A Multisite local environment with subdomains

If you use WordPress multisite locally, you know how painful it can be to add a new entry to your Hosts file every time you start working on a new project. That’s why I chose to work with subdirectories instead of subdomains when I work locally.


Luckily, Konstantin came up with a simple code snippet to add as a plugin o your local instance, that will print a list of all subdomains for that instance. You only have to copy that list and paste it in your Hosts file.


Simple, quick, and a real time saver: you should bookmark this post!


WordPress Multisite with Wildcard Subdomains – Konstantin Kovshenin.


Article publié pour la première fois le 17/01/2012


沒有留言: