DeveloperTutorialsOther

Website Maintenance Message

Website Maintenance Message

Bringing your website offline for maintenance, or construction

The below steps can be used to will bring a website offline, displaying a message to the user instead of website content. The website can still be viewed by admin users when logged in, allowing for testing or construction.

Offiline Message: Server Code

The easiest way to make a website offline is to use the server code of a design. Take the following steps to bring the website offline using server code:

  1. Sign in as an admin user, select the "Designs" option from the left-hand menu of the dashboard.
  2. Click the relevant website design to edit it
  3. Select the "Server Code" tab, located on the top of the editor screen.
  4. Paste the below code into the server code, then click "Save Design" to save the changes.


The message displayed to users can be altered by changing the quoted text on line four and five of the above server code. For example:

Offline Message: Alternate Method (advanced)

In addition to using the server code to make a website offline, you can also wrap the design in a logic statement that checks whether an admin user is signed in. If you are comfortable with using the Synergy 8 logic if tags, this is the recommended method for new websites under development.

The following code can be used to determine whether a users is an administrator, displaying alternate content to other users.

Coming Soon page

This method works well for websites under construction, or if you have the time to put together an effective "coming soon" page.

The following steps involve creating a coming soon page, and then re-directing all non-admin users to that page through server code placed into the website design.

Administrators will still be able to see the website, with public users being re-directed to your coming soon page.

  1. Sign in as an admin user, under the pages section of the dashboard create a new page with your coming soon message.
  2. Select your default website design and edit it
  3. Select the "Server Code" tab, located on the top of the editor screen.
  4. Paste the below code, and then click "Save Design" to save the changes.

Note, you'll need to ensure that the page id in the above server code matches your new page.

Share This Tutorial: