Wildcard subdomain for the same site

In WordPress you can easily do this with sub-directories like example.com/user1 Sub-domain & URL Strategy Having username.domain.com will prevent you in the future from having your own sub-domains like shop.example.com and will plague you if you wanted to use www.example.com or just http://example.com Finally … what if some user wants to use expletives or special … Read more

What is the best way to load the WP environment in a subdomain of my multisite WordPress install?

Use the defines to make it pick the site you want it to pick. You can define these four to setup the $current_site values properly: DOMAIN_CURRENT_SITE, PATH_CURRENT_SITE, SITE_ID_CURRENT_SITE, BLOG_ID_CURRENT_SITE. If you check the wpmu_current_site() function in ms-load.php, you’ll see that it uses those to create the $current_site global. You may or may not have to … Read more

How to use alias domain for multisite installation?

Domain Mapping via Core You don’t need to use the domain mapping plugin if you are planning on running a WordPress Multisite with top-level domains and/or sudomains. WordPress allows you to change a sub-domain to a top level domain once you have added the site settings, see the screenshot below. Core works perfectly without Alias, … Read more

Hosting a WordPress blog as a sub folder from a S3 website

You are using Cloudfront in front of S3, so in order to mix in 2 sources of content you need to on your blog.mycompany.com – add rewrites of blog/* -> /* so that your blog can handle blog.mycompany.com/blog/ urls well. add new blog.mycompany.com as an Origin in “Origins and Origin Groups” tab. add new “Behavior” … Read more

WP Multisite development with Mamp Pro and wildcard subdomains, not really working for me

Appart of the default ports and correctly configuring WPMS… In the Advanced Tab: And manually add the subdomains in /etc/hosts1 file: # BRASOFILO MULTISITE START 127.0.0.1 test1.brasofilo.dev 127.0.0.1 test2.brasofilo.dev 127.0.0.1 cloned.brasofilo.dev # BRASOFILO MULTISITE STOP 1 The folder etc is at the root of your HD and it’s hidden. You can open the file using … Read more