DEV Community

Discussion on: Headless WordPress with React

Collapse
 
jchiatt profile image
J.C. Hiatt

Hi! If you're using Apache, by default Apache will serve an index.html file before a index.php file if one is present. So, you should be able to simply drop your React app in the root of your webserver.

stackoverflow.com/questions/100024...

If you've changed the DirectoryIndex hierarchy, you can simply modify the rule in your .htaccess like so:

DirectoryIndex index.html index.php /index.php

Let me know if that doesn't work!