0

I am trying to prevent index.php from redirecting to a file index.html which I also have in the home directory. I want index.html 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 doesn't work.

2 Answers 2

1

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/

1
  • thanks - see i got the answer right when you were posting Commented Oct 13, 2011 at 15:23
0

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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