<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>

CC BY-SA 3.0
2016-02-16T21:53:24.123Z
Thanks! I got it to work with the following. `'isSystemOn' => (isset($_REQUEST['action']) && !$_REQUEST['action'] != 'mailchimpSubscribe/list/Subscribe'),`
Seán O'Grady
CC BY-SA 3.0
2016-02-16T21:21:28.657Z
2016-02-17T19:35:56.500Z
2016-02-17T19:35:56.500Z
Brad Bell
<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>

<plugin-development><form>
Is it possible to POST to an action if the system is offline?
# 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'),`  

---

