Web Hosting
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress Reply To: Upload Landing Page, but Keep WP Active

Discussion in 'Misc WordPress Requests' started by George Appiah, Oct 26, 2017.

  1. George Appiah

    Guest

    Reply To: Upload Landing Page, but Keep WP Active, by George Appiah

    @buckylulu,

    I get you now

    Here’s one simple idea:

    1) Upload the landing page anywhere on the site, naming anything BUT index.html (use maintenance.html. At this time, domain.com will still load your WordPress site.

    2) Setup .htaccess rules to redirect all requests to domain.com (obviously except maintenance.html) to this maintenance.html page for everyone. Now all visitors to domain.com will be served your “coming soon” page.

    3) Finally, add a bypass in the .htaccess rules for your IP address (and IP addresses of anyone who needs to work on or test the WordPress site) to load the WordPress site.

    That’s the logic. You could do a similar thing using PHP code in your functions.php file, instead of .htaccess rules.

    Rightnow I’m on the road and can’t send code samples now. So so you’ll have to take it up from there, or hope someone smarter than me turns up to help.

    Reply To: Upload Landing Page, but Keep WP Active
     
    #1

Share This Page

Web Hosting