In cpanel, the entire content of the site is inside the AryaBMS file, and I put only the public folder, which contains images, index.php, htaccess, etc., into public_html.
I want a notification in Telegram that is done through a cron job, I want to send a notification to the Telegram group after an hour and it works in the localhost because the public folder is inside the main folder, but in CPanel the public folder is inside public_html. The only problem is to get the image, here I said (local host) public_path, but inside cpanel, the images are located in the side folder of the whole project (AryaBMS), that is, inside public_html How can I give an address here so that he can read the photo? Please help me ♥️
do you have .htaccess file inside public_html ? if you don't then create .htaccess file with
RewriteEngine On RewriteCond %{REQUEST_URI} !^public RewriteRule ^(.*)$ public/$1 [L]
inside.