<p>You can use the <code>redirect</code> <a href="http://buildwithcraft.com/docs/templating/redirect" rel="nofollow">tag</a>. Put this in your <code>index.html</code> template:</p>

<pre><code>{% redirect "coming-soon" %}
</code></pre>

<p><strong>EDIT</strong></p>

<p>If you want to stay on the homepage but want to show the template code for another page, you can use <a href="http://twig.sensiolabs.org/doc/tags/include.html" rel="nofollow">Twig include</a>. Put this in your <code>index.html</code> template:</p>

<pre><code>{% include "coming-soon" %}
</code></pre>

<p>Alternatively, just put your Coming Soon template code straight onto <code>index.html</code>? Either way, this answer should cover everything you need.</p>

CC BY-SA 3.0
2015-02-26T15:04:31.487Z
Thanks for this method.
But this will show http://example.com/coming-soon. What if i just want the url link http://example.com/
Hs Tung
CC BY-SA 3.0
2015-02-26T15:09:30.157Z
Right ok, that's not really a re-direct then as you are staying on the homepage, but showing content from another page. I have updated my answer with another method.
Jamie Wade
CC BY-SA 3.0
2015-02-26T15:13:57.950Z
Oops.
Sorry my question not specific enough.
Yeah, currently I place all my code coming soon code in index.html.
I thought can do it in the route setting then easy for me set back later.
Thanks alot. =)
Hs Tung
CC BY-SA 3.0
2015-02-26T15:19:08.503Z
@HsTung No problem at all, glad to help!
Jamie Wade
CC BY-SA 3.0
2015-02-26T14:43:08.337Z
2015-02-26T15:09:28.700Z
2015-02-26T15:09:28.700Z
Jamie Wade
<p>If you are trying to cover the site from the public while working on it live, i personally would name my coming soon template file <code>503.html</code></p>

<p>Then in the General Settings section of the control panel, switch System Status off.</p>

<p>That way so long as you are logged in, you can access the site as normal but anyone else visiting your site will see the contents of the <code>503.html</code> template.</p>

CC BY-SA 3.0
2015-02-26T19:17:26.810Z
Never noticed this feature, good find! There's even a setting in user group rights to allow login while the site is off. While building the site you can `include` the coming-soon.html and later switch to a proper 503.
carlcs
CC BY-SA 3.0
2017-09-25T17:32:38.630Z
Note that page status code returned 503. Probably not the best option for a coming soon page.
Jason
CC BY-SA 3.0
2015-02-26T17:54:35.210Z
2015-02-26T17:54:35.210Z
Dan Owen
<p>I want to redirect <a href="http://example.com" rel="nofollow">http://example.com</a> to coming-soon.html template, but not index.html.</p>

<p>Possible to do it in route settings?</p>

<redirect>
How to redirect to Coming Soon template
# How to redirect to Coming Soon template

(Asked by: username_0 on 2015-02-26)

I want to redirect <http://example.com> to coming-soon.html template, but not index.html.

Possible to do it in route settings?

**Tags:** redirect

---

## 2 answers

### Answer by username_2 on 2015-02-26. Score: 13 | Accepted answer

If you are trying to cover the site from the public while working on it live, i personally would name my coming soon template file `503.html`

Then in the General Settings section of the control panel, switch System Status off.

That way so long as you are logged in, you can access the site as normal but anyone else visiting your site will see the contents of the `503.html` template.

> **Comments:**
> **username_3**: Never noticed this feature, good find! There's even a setting in user group rights to allow login while the site is off. While building the site you can `include` the coming-soon.html and later switch to a proper 503.  
> **username_4**: Note that page status code returned 503. Probably not the best option for a coming soon page.  

---

### Answer by username_1 on 2015-02-26. Score: 4

You can use the redirect tag. Put this in your index.html template:
{% redirect "coming-soon" %}

EDIT
If you want to stay on the homepage but want to show the template code for another page, you can use Twig include. Put this in your index.html template:
{% include "coming-soon" %}

Alternatively, just put your Coming Soon template code straight onto index.html? Either way, this answer should cover everything you need.

> **Comments:**
> **username_0**: Thanks for this method. But this will show http://example.com/coming-soon. What if i just want the url link http://example.com/  
> **username_1**: Right ok, that's not really a re-direct then as you are staying on the homepage, but showing content from another page. I have updated my answer with another method.  
> **username_0**: Oops. Sorry my question not specific enough. Yeah, currently I place all my code coming soon code in index.html. I thought can do it in the route setting then easy for me set back later. Thanks alot. =)  
> **username_1**: @HsTung No problem at all, glad to help!  

---

