WordPress and index.html file together
-
Hi
I searched lot of – but all solutions what I find doesn’t work any more. I have latest stable WordPress and I need to have separated index.html file also in same directory where WordPress is installed (so index.html and also index.php files).
index.html file is special age verification page (multi language – all free plugins what I tested – doesn’t give that simple yes/no solution – what is needed).
Problem – when I am adding DirectoryIndex index.html index.php directive – then I can’t access to site even with sitename.com/index.php – I can see only index.html file. index.php is rewritten always to index.html.
Solutions what I find and doesn’t work any more: in canonical.php file change the line: $redirect[‘path’] = preg_replace(‘|/index.php/$|’, ‘/’, $redirect[‘path’]); — this is deprecated and commented out now.
Also – disabling canonical redirects – doesn’t work also: remove_filter(‘template_redirect’, ‘redirect_canonical’); – i added separated plugin or added that line to theme functions.php file – nothing.
How its possible to have in same wordpress installation directory index.html and also index.php file?
- The topic ‘WordPress and index.html file together’ is closed to new replies.