<p>I don't think it's possible using the System Status switch in Settings → General.</p>

<p>I had a similar requirement and solved it with a custom variable "maintenanceMode" in my config.php and added some simple logic to the <code>init</code> method in my business logic plugin, which redirects all request except some maintenance mode URLs to the 503 page.</p>

<pre class="lang-php prettyprint-override"><code>$maintenanceUrls = array('/503', '/impressum', '/about');

if (craft()-&gt;request-&gt;isSiteRequest() &amp;&amp; craft()-&gt;config-&gt;get('maintenanceMode')) {
    if (!in_array(craft()-&gt;request-&gt;getUrl(), $maintenanceUrls)) {
        craft()-&gt;request-&gt;redirect('503');
    }
}
</code></pre>

CC BY-SA 3.0
2016-02-09T11:10:40.773Z
2016-02-09T11:10:40.773Z
carlcs
<p>I've set Craft offline (System status). Is it possible to "open" URL routes so it can be accessed even though the website is offline? Right now every request gets routed to my 503.html page.</p>

<p>For example the routes: <code>/impressum</code> and <code>/about</code></p>

<routes><system-status>
Can I open templates/routes other than 503 when Craft is offline?
# Can I open templates/routes other than 503 when Craft is offline?

(Asked by: username_0 on 2016-02-09)

I've set Craft offline (System status). Is it possible to "open" URL routes so it can be accessed even though the website is offline? Right now every request gets routed to my 503.html page.

For example the routes: `/impressum` and `/about`

**Tags:** routes, system-status

---

## 1 answers

### Answer by username_0 on 2016-02-09. Score: 4 | Accepted answer

I don't think it's possible using the System Status switch in Settings → General.
I had a similar requirement and solved it with a custom variable "maintenanceMode" in my config.php and added some simple logic to the init method in my business logic plugin, which redirects all request except some maintenance mode URLs to the 503 page.
$maintenanceUrls = array('/503', '/impressum', '/about');

if (craft()->request->isSiteRequest() && craft()->config->get('maintenanceMode')) {
    if (!in_array(craft()->request->getUrl(), $maintenanceUrls)) {
        craft()->request->redirect('503');
    }
}


---

