- Summary
- The Route on Subdomain add-on allows users to set up custom routes for specific subdomains, enhancing URL management and navigation within their applications.
The Route on Subdomain add-on lets you set up custom routes for specific subdomains, enhancing URL management and navigation within your applications
$config['cookie']['domain'] = '<example.com>'; // this is so cookies are available on every sub-domain
$config['tckRouteOnSubdomain']['primaryHost'] = '<example.com>' // this is to differentiate real host vs. route ;
Replacing <example.com> with your own host. You'll also need to update nginx/apache/etc host configuration file to support wildcard.
Once changes has been made to config.php you can enable routes on subdomain via ACP > Setup > Navigation > Routes on subdomain.
$config['cookie']['domain'] = '<example.com>'; // this is so cookies are available on every sub-domain
$config['tckRouteOnSubdomain']['primaryHost'] = '<example.com>' // this is to differentiate real host vs. route ;
Replacing <example.com> with your own host. You'll also need to update nginx/apache/etc host configuration file to support wildcard.
Once changes has been made to config.php you can enable routes on subdomain via ACP > Setup > Navigation > Routes on subdomain.