I have a addon domain in cpanel for my website : "siteB" which are hosted under a shared hosting with this structure:
var/home/siteA
->public_html (main domain 'siteA')
->siteB.com (addon domain)
->public (for siteB)
->app
->vendor
-> ...
the addon domain name has a laravel website which is perfectly working on the local host. so i make a public folder in siteB and i have copied all the files and upload them to the addon domain and also imported the database and made the changes on the env file.
When i enter 'www.siteB.com' in the browser, first page run correctly but i cant access to another route in my project.
I think its related to the document_root that i have to change it for addon domain. but cant do anything.
How can i fixed this problem with addon domain project?