简体   繁体   中英

Mapping host name Zend2

我最近开发了一个网站,当我单击此URL便会打开主页,但是当用户仅单击此链接时我想打开我的网站主页。

更新您的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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM