I created a custom visual force page to be our login page for our community. When I go to manage communities and try to set this as the login page it gives me

Error: you can only select pages that are accessible by the community guest user

I have read the getting started with communities and they don't accurately describe how to do accomplish this. I cannot see a community guest user to give access to this visual force page only profiles. I also cannot see a community guest user to add to a profile.

What do I have to do to allow this to work?


3 Answers 3


When you create a community inside Salesforce ,A salesforce site is automatically spun for you for accessing the community without login credentials as a guest user .

Lets take an example community set up to understand this

I have the communities as in screenshot

enter image description here

When i navigate to sites via set up menu,I see sites are already created by SFDC

enter image description here

The error is complaining your page is not accessible for your site .Below screen shot will help you on how you will add your VF to provide access to guest user

enter image description here

  • I cannot get to sites. When I go to the sites screen it wants me to register my force.com domain. This is in our sandbox as we want it all working fine before we roll it out. Our community works fine with the standard built in login page. When I try to register the existing domain that our community is using it complains that it already exists. So I cannot get the site detail page to give public access to the custom VF login page
    – Ohmicron
    Commented Feb 19, 2016 at 13:59
  • Try using different domain names. Your community will also have same domain name once you register a domain Commented Feb 19, 2016 at 14:02
  • I found a way there by following the directions on Rao's link. Now it let me set it as my login page without complaining but it still shows the old login page when I bring it up. I went out and back into my community and it is showing my changes. So it should be using the custom VF login page but it's not
    – Ohmicron
    Commented Feb 19, 2016 at 14:12
  • You will go to community management administration page and select login page as your page . Commented Feb 19, 2016 at 14:25
  • That was the part it wouldn't let me do until I gave the VF page public access which you showed me how to do. It is set in community management administrator as my VF page. It let me save it now without issue but it still shows me the built in standard login page when I go to the login URL for our community. However I can remove the /login from the URL and replace it with my custom VF Page name and that seems to work. Do I need to call my VF Page login?
    – Ohmicron
    Commented Feb 19, 2016 at 14:35

1. From Setup, click Customize > Communities > All Communities > Select the community

enter image description here

2. Under Workspaces > Pages, click the Go to Force.com link.

enter image description here

3. In the Site Visualforce Pages, click Edit.

enter image description here

4. Select your custom Visualforce page from the Available Visualforce Pages and Add it to Enabled Visualforce Pages.

5. Click Save


We also faced the same problem in our project . We noticed the User which is associated to the profile was inactivated . Once we activated the user it starts working .

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .