Answers.Body: <p>Completely untested, but something like this in your <code>craft/config/general.php</code> file should work:</p>
  
  <pre><code>return array(
     'isSystemOn' =&gt; (isset($_REQUEST['action']) &amp;&amp; !$_REQUEST['action'] != 'mailchimpSubscribe/list/Subscribe'),
  );
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-02-16T21:53:24.123Z
Answers.Text: Thanks! I got it to work with the following. `'isSystemOn' => (isset($_REQUEST['action']) && !$_REQUEST['action'] != 'mailchimpSubscribe/list/Subscribe'),`
Answers.UserDisplayName: Seán O'Grady
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-02-16T21:21:28.657Z
Answers.LastActivityDate: 2016-02-17T19:35:56.500Z
Answers.LastEditDate: 2016-02-17T19:35:56.500Z
Answers.UserDisplayName: Brad Bell
Body: <p>There are easier ways to do this for sure, but... </p>
  
  <p>I have the <a href="https://github.com/aelvan/mailchimp-subscribe-craft" rel="nofollow">Mailchimp Subscribe</a> plugin installed to build our email list etc... and it works perfectly!</p>
  
  <p>However, we are now building a "Coming Soon" page with the site turned off to the public while we build out the site. </p>
  
  <p>Is it possible to accept a certain action while the system is offline so that the POST request is accepted and doesnt return a 503 error?</p>
  
  <p>Again, this is possible through using just a Mailchimp form itself but I'm interested to see if this sort of thing is possible if I ever needed this sort of control in the future.</p>
  
Tags: <plugin-development><form>
Title: Is it possible to POST to an action if the system is offline?
ThreadText: # Is it possible to POST to an action if the system is offline?
  
  (Asked by: username_0 on 2016-02-16)
  
  There are easier ways to do this for sure, but...
  
  I have the [Mailchimp Subscribe](https://github.com/aelvan/mailchimp-subscribe-craft) plugin installed to build our email list etc... and it works perfectly!
  
  However, we are now building a "Coming Soon" page with the site turned off to the public while we build out the site.
  
  Is it possible to accept a certain action while the system is offline so that the POST request is accepted and doesnt return a 503 error?
  
  Again, this is possible through using just a Mailchimp form itself but I'm interested to see if this sort of thing is possible if I ever needed this sort of control in the future.
  
  **Tags:** plugin-development, form
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2016-02-16. Score: 4 | Accepted answer
  
  Completely untested, but something like this in your `craft/config/general.php` file should work:
  
  ```
  return array(
     'isSystemOn' => (isset($_REQUEST['action']) && !$_REQUEST['action'] != 'mailchimpSubscribe/list/Subscribe'),
  );
  
  ```
  
  > **Comments:**
  > **username_0**: Thanks! I got it to work with the following. `'isSystemOn' => (isset($_REQUEST['action']) && !$_REQUEST['action'] != 'mailchimpSubscribe/list/Subscribe'),`  
  
  ---
  
  