[SalesForce] Sites: While in maintenance mode, custom maintenance page(s) do not display

I'm currently trying to create a custom maintenance page in salesforce. I've actually created a custom page for each type of salesforce error. All the pages are created and in my site. All the pages can be viewed by targeting them specifically with the URL. All the other pages other than the in maintenance page work correctly when force triggering their respective error.

Things I've done:

  • Ensured pages are enabled under sites.
  • Made sure the maintenance page lookup points to my custom maintenance page.
  • Made sure the inactive site default page also points to my maintenance page.
  • Ensured page is enabled for each profile.
  • Tried just over writing default maintenance page with my own html.
  • Tried deleting default maintenance page.

No matter what I do, when the site is in maintenance mode, it still shows the default maintenance page (which is especially confusing seeing as I have deleted the page). When the site is active, I can go to [siteurl].com/[maintenancePagename] just fine. Everything works at that point. But when inactive, it's always the default maintenance page.

If it's required info, the page is created using API 28. This is currently being tested on a sandbox, not production. If any more information is required, I will post beyond this point in edits.

Best Answer

I know this is an older post, but for others taking too much time to figure this out, here's what I have found. For sites (and communities) go to Setup | Develop | Sites and click on the site label for the site (or the community; you can click the Site Label column even if it doesn't show anything in the Action column). The setting for Inactive Site Home Page is what will be used when the site is Inactive. NOT the Maintenance Page. In fact, I don't know when the "Maintenance Page" is used....not well documented. As others have already posted above, there is a static "Service Not Available" page you can set up for SFDC servers being down (very rare). And the Inactive Site Home page is shown when you deactivate the site.

Related Topic