I came across this site and wanted my own visualforce page to be publicly viewable without any logins. How can I do this?



2 Answers 2


Easy! After creating your Visualforce page:

  1. go to Setup > Develop > Sites,

  2. register your Force.com subdomain name,

  3. create a new Force.com Site

  4. next to 'Site Visualforce Pages' click Edit

  5. add your page to the list of Enabled Visualforce Pages

  • I tried this but as a developer I guess I can't create any more sites nor delete any. Does that mean I need to create another account to try it out ? Anyway I'm accepting your answer.Thanks :)
    – MnZ
    Dec 18, 2013 at 11:36
  • 1
    Sounds like you already have one set up :-) use that? Or just create another Developer Edition account and drop a new Site in there. Dec 18, 2013 at 11:48
  • I added my page to my site. It is saying "Authorization Required You must first log in or register before accessing this page. If you have forgotten your password, click Forgot Password to reset it."
    – MnZ
    Dec 18, 2013 at 13:07
  • 1
    D'oh! Go to Setup > Monitoring > Debug Logs, create one for Site Guest User and look for anything interesting. If that doesn't yield and leads, maybe raise a new question showing the source of your Page, Controller and any Extensions. Dec 18, 2013 at 13:26
  • 1
    custom object permission was required. Solved !
    – MnZ
    Dec 18, 2013 at 13:28

You need to go to your site, click on the name and click edit on the "Site Visualforce Pages" section, add the page to the site.

You must log in to answer this question.

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