close

February 2024 only! Join our Discord free of charge.

Slick­Stack
Lightning-fast WordPress on Nginx

SlickStack Config: TLD vs Domain

There are currently two variables in the ss-config file which are SITE_TLD and SITE_DOMAIN. The reason for this is that SlickStack aims to be as verbose as possible so that advanced developers can understand and control what is going on (to avoid unclear behind-the-scenes configuration).

  • SITE_TLD = The top-level domain that you want to install on your server, regardless of being WordPress single-site or Multisite installations. If you choose a Multisite installation then only this variable matters, the domain variable will be ignored (no www prefix allowed on Multisite installations at this time).
  • SITE_DOMAIN = The full domain you want to install WordPress for single site installations, including any prefixes (sub-directories not supported). For example:
    • www.example.com
    • example.com
    • sub.example.com
    • example.com.au
    • www2.example.com.au

As you can see, if we tried to automate too much of the setup and configuration process, we might not consider certain atypical situations or environments. In some cases there are only 1 period in the full domain, and in others there are two, three, or more periods. Make sure to always remove all slashes from both of these variables.

About the Author

Jesse Nickles

Jesse is the lead developer for the SlickStack project and also for HoverCraft, the accompanying free WordPress theme. He has been customizing WordPress for both personal websites and SEO clients for over 15+ years, with a focus on simplicity and longevity.

Tags:

Thanks to our generous sponsors for their support!