Default website is resolved instead of SXA site intermittently


Description

An SXA site might not be resolved so that it falls back on the default website intermittently. The issue occurs when the enforce version presence feature for the SXA site is enabled. The warning "Incorrect site definition" can be found in the logs.

Solution

To resolve the issue, consider one of the following options: