I just did not get the informed way and the page always loads PHP first: ... So I put a code at the top of my PHP that checks if I passed (in the url) a 'true' value for the variable 'testing' and, if YES, it loads my PHP, otherwise (if I do not pass anything) it redirects to my index.html. Here's the code below for who else needs something like this: P
<?php
if($_GET['testing'] != 'true'){ ?>
<html>
<head>
<meta http-equiv="refresh" content="0; url=http://example.com/index.html" />
</head>
</html>
<?php } else {
/* aqui o código PHP */
} ?>
That way, it loads my HTML if I enter the URL example.com
, but if I enter example.com/?testing=true
it loads my PHP.
Thanks for the support! :)