• Dhruven Shah

    (@dhruvenshah32)


    I have installed WordPress Multisite and I want to redirect all site visitors, except myself, to the coming soon page of the website. When I searched google for what code to add to the .htaccess file, I get different answers (codes) – which confused me even more.

    What I am trying to achieve –

    1. Redirect all site visitors using .htaccess
    2. Avoid redirection for my computer’s IP address
    3. Redirect all pages (say www.example.com/page1 or www.example.com/page2) to www.example.com/coming-soon
    4. Redirect not one but two domains like this (say www.example1.com to www.example1.com/coming-soon and www.example2.com to www.example2.com/coming-soon)

    Thanks in advance.

Viewing 2 replies - 1 through 2 (of 2 total)
  • leejosepho

    (@leejosepho)

    I would probably just change the end of htaccess from index.php to index.html and make an index.html page with the “Coming Soon” message. By doing that, all traffic will be directed to the message unless specifically requesting to go past it, and that will let requests like mysite.com/wp-admin/ and mysite.com/index.php go on through for you. Then at that point, if you wish, you can add htaccess to send any such requests other than from your own IP back to index.html.

    Thread Starter Dhruven Shah

    (@dhruvenshah32)

    Hi leejosepho,

    Thanks for the advice, but this won’t work for me since I already have a different theme on the coming soon page. I am using two themes at once. All I want to know is the code for accomplishing the above. Searched google but couldn’t find how to do redirect two domains using the same .htaccess file.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘.htaccess Redirection Code for Multiple Coming Soon Pages’ is closed to new replies.