请教个nginx问题,添加try_files $uri $uri/index.php /index.php?$query_string;,类似www.mydomain.com/admin这样的URL可以解析,但是单纯访问www.mydomain.com却提示403错误,www.mydomain.com/index.php这样手动添加index.php后可以正常解析,有遇到类似问题的吗?
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
全局加上
如
以下的配置我就不写了