在cpanel中,站点的全部内容都在AryaBMS文件中,我只将包含图像、index.php、htaccess等的public文件夹放入public_html。
我希望在Telegram中通过cron作业发送通知,我希望在一小时后向Telegram组发送通知,它在localhost中工作,因为公共文件夹在主文件夹中,但在CPanel中,公共文件夹在public_html中。唯一的问题是获取图像,我在这里说过(local host)public_path,但是在cpanel里面,图片是在整个项目(AryaBMS)的side文件夹里,也就是说,在public_html里面我怎么在这里给予地址,让他可以看到照片呢?️🙏
1条答案
按热度按时间hmae6n7t1#
你有.htaccess文件在public_html里面吗?如果你没有那么创建.htaccess文件与
RewriteEngine On RewriteCond %{REQUEST_URI} !^public RewriteRule ^(.*)$ public/$1 [L]
在里面。