WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. 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 am trying to prevent index.php from redirecting to a file index.html which I also have in the home directry. I want the index.html file to remain there for a few days until the wordpress site is finished, being the page that visitors will see, and I'd access the new installation by adding index.php to the url; but wordpress redirects index.php to index.html meaning that I can only view the pages and posts and not the home page. I have tried putting remove_filter('template_redirect', 'redirect_canonical'); into the functions.php file but it doesnt work. Can anyone help ?

share|improve this question

Try adding this to your .htaccess file:

RewriteRule ^index\.htm$ index.php [NC,R]

SOURCE: http://css-tricks.com/377-how-to-redirect-indexhtml-to-indexphp/

share|improve this answer
thanks - see i got the answer right when you were posting – byronyasgur Oct 13 '11 at 15:23
up vote 0 down vote accepted

Found the problem - you have to access index.php/ not just index.php

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.