Manage Salesforce Site Visualforce Pages
Salesforce Sites use Visualforce pages for all site and error pages. To expose a Visualforce page on your site, enable that page for your site.
Required Editions
| Available in: both Salesforce Classic and Lightning Experience |
| Available in: Developer, Enterprise, Performance, and Unlimited Editions |
| User Permissions Needed | |
|---|---|
| To create and edit Salesforce Sites: | Customize Application OR Create and Set Up Experiences |
Sample error pages use the SiteSamples static resource for their style sheet and images.
-
To control the pages available to all your site visitors, add or remove the
page from the site.
- From Setup, in the Quick Find box, enter Sites, and then select Sites.
- Click the name of the site you want to modify.
- Click Edit on the Site Visualforce Pages related list.
-
Optionally, to enable the My Profile page, use the
Add button to add that page to your
site.
The My Profile page is a Visualforce page associated with a Customer Portal or site user's profile. The My Profile page enables users logged into either your Salesforce site, or your Customer Portal from Salesforce sites, to update their own contact information. When they update that page, the corresponding portal user and contact records are updated.
The My Profile page can be enabled either for your entire site or in a more restricted way by assigning it to the site guest user profile.
The My Profile page is also delivered as part of the Customer Portal Welcome component on your home page layout.
-
Use the Add and Remove
buttons to enable or disable other Visualforce pages for your site, and
then save your changes.
If a page isn’t listed under Site Visualforce Pages, an authentication or page-not-found error is displayed based on the existence of the page.
Note If you select a Visualforce page for these items, that page is automatically enabled for your site: any of the lookup fields on the Site Detail page, any of the error pages, or the Change Password Page under login settings. If you remove a page from this list, but it’s still selected in one of these places, public users can access that page. To completely remove pages from your site, disable them here and make sure that the page isn’t selected in any lookup fields for your site.
-
If you don't want to enable a Visualforce page for your entire site, you can
also enable pages for specific profiles.
- From Setup, in the Quick Find box, enter Profiles, and then select Profiles.
- Click the name of the profile that you want to edit.
- In the Enabled Visualforce Page Access related list, click Edit.
- Use the Add and Remove buttons to enable or disable Visualforce pages for this profile, and then save your changes.
Note When you name Visualforce pages hosted on force.com sites or Classic Experience Cloud sites, choose a name that is different from standard platform URLs.

