
And that code is repeated in various pages
It would be better not to have a public
dir
rather than having all the files from it put to root (keep the files structure that is inside that dir)
root = htdocs folder
so index.php is called when someone types just this into the browser
octatradefx.freecluster.eu
Note: complications are possible if the public
dir is hardcoded somewhere in the path of your code.
In addition, it would be desirable to create a .htaccess file
in the htdocs folder (or edit existing if you have it in the public
folder after you move the files)
so that no one can dig through the contents of your directories.
# Disable Directory Listings in this Directory and Subdirectories
Options -Indexes