Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have WordPress installed at the root level of a website. I thought it would be easy enough to have a "coming soon" page called default.html and edit the .htaccess file as follows:

AddHandler php5-script .php
DirectoryIndex default.html index.php
# BEGIN WordPress
# END WordPress

...so that visitors to the site are sent to the default page, and I could manually specify index.php as my destination for testing. (This isn't a high-security job.) But index.php is redirecting me to the default page. When I remove the DirectoryIndex line, the index.php file is found automatically by visitors to the site root, but... that's the page I was trying to hide.

What am I doing wrong with .htaccess and how can I get it to behave the way I want?

share|improve this question
You may want to ask this at the Wordpress StackExchange site – John Conde Jan 13 '11 at 14:18
That site only has like 4 users- questions go days without being answered.. I knew I had a better shot here.. ;) – Isaac Lubow Jan 14 '11 at 0:06

I use a different (easier) method of achieving the same thing.

  • create a simple "coming soon" theme (I think there is one in the gallery you can modify).
  • install the Theme Test Drive (TTD) plugin here's the info: http://www.prelovac.com/vladimir/wordpress-plugins/theme-test-drive
  • Configure TTD to send all standard users to your "coming soon" theme and you (admin user) to the design you're working on automatically
  • you can send links to others (non-admin users) for feedback by simply adding a url variable
  • when you're happy with the design simply make the new design the default and disable TTD

It's worked really well for me and might be a bit simpler for future/frequent mods than hacking .htaccess.

Good luck, James

share|improve this answer

Your Answer


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.