Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I am building up a website for C Programming Tutorial www.programminginc.net . Now I am using a plugin to show my site under construction. What is the code used to create a website under construction setup?

share|improve this question
    
If either of these answers worked for you, please take a moment to check it as accepted so the question can be closed and helpful to others. –  morganestes Dec 15 '13 at 5:13

2 Answers 2

The quick and dirty way to do it is to create a file named .maintenance at the root of the site-- same directory as license.txt-- and add a bit of PHP:

<?php

die();

Of course, you can create whatever markup and messages you'd like before the die();, but there is very little WordPress available since it fires very early in the wp-settings.php file.

If you want to see how to add and remove the file automatically, look at how the core does it.

share|improve this answer

Here are two options:

  1. Create a static HTML "Coming Soon" page and redirect outside requests to your domain to that page. This will let you continue to work on your site (hopefully you're developing locally and pushing changes to your live site) without your visitors loading up the WordPress side.

  2. Create a basic WordPress theme with your "Coming Soon" page as index.php and set the theme as default. You can use a plugin like Theme Test Drive to test out the one you're developing while your visitors see the "Coming Soon" theme.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.