![]() ![]() At this point, the site should be broken, i.e., home page not accessible (at least that what’s happened to me). Verify that it’s working, then go through the steps in the Codex to convert it to a Multisite. If you’re starting from a clean install, go ahead and install WordPress in your development directory. Once your URLs are clean and simple, it’s time to set up WordPress. Install Your WordPress Site or Migrate it In Note, if you’re not using subdirectories for your sub sites (i.e., you’re using different domains for your sub-sites), you’ll need to enter all of those domains in your local hosts file. If your URLs include the port number and/or a subdirectory as shown in the first example above, see that article, then come back when that’s all done and totally working for a regular WordPress install. I wrote a whole article on how to get clean URLs on MAMP. So, the first step is to make your local URLs “clean” like this: mysite.local I had to modify my DOMAIN_CURRENT_SITE setting in wp-config.php to get Multisite to work.Īfter a lot of struggling and research, I came to the conclusion that it’s basically not possible to set up WordPress Multisite on a local URL like this: 127.0.0.1:8888/.Even after doing a search and replace for the URL in the database, I had to hand-modify my wp-blogs table. ![]() Migrating a Multisite to a different domain (if you are doing that) is non-trivial.In other words, it won’t work if your development URLs look like this: 127.0.0.1:8888/ (see this article on how to get clean URLs on MAMP). You need clean URLs on MAMP to get it to work with Multisite.If you want a quick summary of the key points, here are the keys to getting WordPress Multisite to work on MAMP: After a whole day of research, I finally got it to work though! But, I had a hell of a time trying to get it to work with a WordPress Multisite. I’ve used MAMP to create local WordPress sites for years. I’ve kept the article below for those still using MAMP, but rather than messing with these settings, I’d recommend that you check out LocalWP. Note: since writing this article, I have switched to LocalWP, which is superior to MAMP in practically every way except that it doesn’t easily support Multisite with different domain names pointing to the same Multisite install.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |