Skip to main content

We are migrating our websites from SG2 to SFRA and planning to go live in the next month. We would like the websites to be available only for internal testing (within our VPN) and show a maintenance page to the external world, until we are done testing on the go live date.

Any ideas/suggestions?

 

#Trailhead  #Salesforce Developer

1 answer
  1. Jan 27, 2023, 12:37 AM

    There are a few options you can consider to make your websites available only for internal testing and show a maintenance page to the external world:

     

    Use Firewall Rules: You can use firewall rules to block external access to your websites and only allow access from within your VPN. This will ensure that only internal users can access the websites while testing.

     

    Use Cloudflare: You can use Cloudflare to set up a maintenance page that will be shown to external users. This can be done by creating a new page rule that redirects external users to the maintenance page. You can also use Cloudflare's "Development Mode" feature to allow internal users to bypass the maintenance page and access the website.

     

    Use Salesforce Shield: Salesforce Shield allow you to create a maintenance page that will be shown to external users and only allow internal users to access the website while testing. This can be done by creating a new Apex class that checks the user's IP address and redirects them to the maintenance page if they are external.

     

    Use Site.com Studio: Site.com Studio allow you to create a maintenance page that will be shown to external users while you are testing the website. This can be done by creating a new page in Site.com Studio and setting it as the default landing page for the website.

     

    It's important to consider that these options are not mutually exclusive, you can use a combination of them to achieve the desired result. Additionally, it's important to test the website thoroughly before going live, to make sure that everything is working as expected and that there are no errors.

0/9000