About the URL Structure of Site Pages

Understanding the URL structure of Wix site pages is crucial for tasks such as routing, linking, SEO, and query parameter manipulation.

Sample URLs

The structure of the URLs differ between Wix premium sites and Wix free sites:

  • Premium sites: Use a custom domain, such as domain.com: https://domain.com/animals/mammals/elephant?species=african-elephant.

  • Free sites: Reflect the Wix editor as the domain followed by the site name, such as user.wixstudio.io/zoo for Wix Studio sites and user.wixsite.com/zoo for Wix Editor sites.

    • Wix Studio: https://user.wixstudio.io/zoo/animals/mammals/elephant?species=african-elephant

    • Wix Editor: https://user.wixsite.com/zoo/animals/mammals/elephant?species=african-elephant

You can get the full site URL, as well as its parts, using the Wix Location Frontend API.

Key parts of a URL

TermDescriptionExample
ProtocolStandard part of the URL that indicates the protocol used to access the resource.https://
Base URLRepresents the root domain of your site. Premium sites use a custom domain, while free Wix sites include the editor followed by the site name.Premium: domain.com
Free (Wix Studio): user.wixstudio.io
Free (Wix Editor): user.wixsite.com
PrefixComponent used for dynamic paths and router pages. Prefixes are useful for making Dynamic Page URLs, or for determining which incoming requests the router handles./animals
PathThe path typically follows the base URL or the prefix, if a prefix exists. For dynamic pages and router cases, paths are used for structure or to encode information to indicate what dynamic content to show./mammals/elephant
QueryQuery parameters are key-value pairs appended to the URL to pass additional data.?species=african-elephant

See also

Did this help?