I’ve been trying to figure this out but no success. I have a static site in domain.com/site/index.html
but I’m also creating a new wordpress version in / to eventually replace it.
What do I put in .htaccess
so typing domain.com
opens www.domain.com/site/index.html (static website) while typing domain.com/index.php
opens the WordPress site? Is this possible?
Edit: I deleted the previous .htaccess code I posted here. It just didn’t work.
%{HTTP_HOST}
is just the host name (e.g. “www.domain.com”). To test the path after the host name you need to useREQUEST_URI