Skip to content

Backgrounds

How-to Guides

Technical References

Multisites /

Subdomains & subdirectories

By default VIP Go supports only subdirectory multisites, but this still allows for these options:

  • A pure subdirectory multisite, with sites addresses like example.com/one and example.com/two
  • A site using custom domains and subdomains, with site addresses like another.example.com and example-further.com
  • A site using a mix of both, with site addresses like example.com, example.com/oneanother.example.com, and example-another.com/two

To achieve the same effect as a subdomain multisite, you could map a number of custom (sub)domains, e.g. one.example.com, two.example.com, etc.

Subdirectories

VIP Go supports a subdirectory site with a single segment path, e.g. example.com/one, with no additional effort.

With a small amount of additional code, VIP Go can support two path segments, e.g. example.com/one/two (in this configuration it will support both one and two segment paths, as well as custom domains).

To enable paths with two segments, add the following code to /vip-config/client-sunrise.php:

function my_filter_site_by_path_segments_count( $num_segments ) {
        $num_segments = 3;
        return $num_segments;
}
add_filter( 'site_by_path_segments_count', 'my_filter_site_by_path_segments_count', 99 );

If you do not need paths with two segments, there is no need to add the above code.

Last updated: April 09, 2021

Related Topics