For a Salesforce Files [Public Link], a URL is generated upon creation, and that URL cannot be changed. You cannot specify an Experience Cloud site domain or a custom domain as the Public Link URL.
This addresses the question of whether an Experience Cloud site domain or a custom domain can be used for a Salesforce Files Public Link URL.
In conclusion, the Public Link URL cannot be changed, and these domains cannot be specified.
Salesforce generates the URL for a Salesforce Files Public Link when it is created. The generated URL cannot be modified.
When posting a file's Public Link on an Experience Cloud site, there is often a desire to also use the custom domain configured for that site in the Public Link URL.
Unfortunately, not being able to set a custom domain for a Public Link URL is working as designed.
005467097

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.