Of course, i cannot find where the problem is.
I did almost everything the same as written here: Instructions
copied content from “public” folder of my app into “htdocs” on ftp
copied the other content into separate folder with another name (I couldn’t create new folder in root folder, because of rights. That is why I copied everything in a new folder inside htdocs)
changed paths in index.php (added new folder withing autoload paths)
configured .env file relevant to my needs (such as APP_URL, DB, and so on)
Thats it!
It has to be functional. I’ve tested also with only 1 index.html <h1>test</1> in it. And even this didn’t work.
If your (sub)domain was created by Client Area, make sure that (sub)domain exist on Addon Domain menu of cPanel.
Or if you created the subdomain by yourself, make sure it exist on Subdomain list.
If still error:
Could you be more specific, I have 2 accounts, 2 different websites:
the first one works perfectly, the second is in this topic.
What should I do in cPanel? In cPanel from this second website?
Sorry for dumb questions, I promise I will never ask them again as long as I understand this problem
I saw your screenshot, and your website files are on htdocs, not on yourdomain/htdocs. If you want your website to work after adding the domain / subdomain another time from the “Addon Domains” or the “Subdomains” section of the Control Panel, you MUST upload / move them to yourdomain/htdocs.
The main htdocs folder is only for (sub)domain that you registered from your Client Area (your first (sub)domain of your account).
After that, every time you create domains/subdomains inside your account cPanel, the domains/subdomains will have their own htdocs folder. For example: yourdomain.tld/htdocs/ yoursubdomain.epizy.com/htdocs/
etc.