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 ?
Tell me more
×
WordPress Answers is a question and answer site for
WordPress developers and administrators. It's 100% free, no registration required.
|
Try adding this to your .htaccess file:
SOURCE: http://css-tricks.com/377-how-to-redirect-indexhtml-to-indexphp/ |
|||
|
|
