更新您的apache虚拟主机配置并将DocumentRoot
设置为ght/public/
If you only have access to the data directory, but not to the apache config itself, you can add a .htaccess
with contents (must be allowed by the server):
RedirectMatch 301 /(.*) /ght/public$1
Alternatively, why don't you upload your PHP and HTML files directly into the webserver root? (above the /ght/public/ directory) What access to you have to the webserver?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.