A
A
anton_myaso2019-07-25 18:45:51
Network administration
anton_myaso, 2019-07-25 18:45:51

How does the site work without index.php?

Gave a folder with a script to install on the site.
UPLOAD folder as expected. There are only 2 php files in the root, there is no index file.
There is a public_html folder. It would seem... here is the solution. Upload it to root. But!
But on another hosting, the hierarchy is exactly the same: root, then public_html and everything works.
When you try to go to domain.ru/public_html, a kind of site opens (without styles and without working links). The same pictures link to the root of the site, without /public_html
Everything works on hosting, but I can't figure out how. There is no .htaccess file, the php versions are identical, the config is identical, even the database dump was loaded from the working version, there are rights to all folders.
Where to dig?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
ThunderCat, 2019-07-25
@anton_myaso

the index file must be in document_root, your public_html folder for your script was the document root, this folder may be called differently on the hosting. Accordingly, you put everything that is in public_html into the hosting root document, the rest of the files (if any) should be hierarchically the same as in the source folders.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question