1

I have a WordPress installation on which I want to work currently. The visitor should just see a static index.html when he visits the site, but I will still enter domain.com/index.php in the browser and the normal WP site should load.

I changed my .htaccess to:

DirectoryIndex index.html index.php

But now the index.html is always loaded, even when I type domain.com/index.php in the browser. How can I set the index.html as the default but can still reach the index.php?

Thanks.

2
  • When you type domain.com/index/.php , then the index.php get removed from the url after the page loads? Commented Aug 11, 2015 at 7:55
  • 1
    Duplicate? stackoverflow.com/questions/10002439/… Commented Aug 11, 2015 at 8:02

0

Your Answer

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.