Understanding the URL structure of Wix site pages is crucial for tasks such as routing, linking, SEO, and query parameter manipulation.
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.
Term | Description | Example |
---|---|---|
Protocol | Standard part of the URL that indicates the protocol used to access the resource. | https:// |
Base URL | Represents 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 |
Prefix | Component 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 |
Path | The 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 |
Query | Query parameters are key-value pairs appended to the URL to pass additional data. | ?species=african-elephant |