我有以下结构:
/var/www/subdomain.domain.com/app1/public/index.php /var/www/subdomain.domain.com/app2/public/index.php
要访问该应用,请输入:
www.subdomain.domain.com/app1/public
但是,有点像
那样www.subdomain.domain.com/app1和www.subdomain.domain.com/app2?
没有/ public,但仍然会重定向到该子文件夹,因为我需要index.php?
谢谢!
答案 0 :(得分:0)
<Location "/app1">
Alias "/app1/public"
</Location>
<Location "/app2">
Alias "/app2/public"
</Location>