Streaming live at 10am (PST)

Redirect all pages to home page


#1

Hey there,
Creating a new site but I want to redirect all of my current site visitors to a Coming Soon page. So I'd like to be able to redirect all of the traffic going to any page on my site to the home page (which is the new coming soon page).

Here's how I have it set up:

But this just drops you into a redirect loop (since I'm saying to redirect / to / and around and around we go.

What's the best way to accomplish what I'm going for, to redirect all pages on my site to the home page?

Thanks!
Chris


#2

Paste this in Site Settings > Custom Code > Header Code

<script>if(location.pathname!="/")location.href="/";</script>