gpt4 book ai didi

php - 名称 image.php.jpg 中带有 .php 的文件名问题

转载 作者:太空宇宙 更新时间:2023-11-04 11:06:32 25 4
gpt4 key购买 nike

<分区>

刚刚将站点从运行 IIS 的 Windows 服务器移动到运行 Apache 的 Linux 服务器,有一些图像标题为,例如 image.php.jpg(它们是图像)。

访问它们时,出现此错误:

A file permissions error has occurred. Please check the permissions on the script and the directory it is in and try again.

通过一些阅读,我需要在 .htaccess 文件中添加一些内容,因为它是 Windows 服务器上的站点,所以没有。

有人可以指出我需要在 .htaccess 文件中放入什么,以避免服务器将文件名中带有 .php 的“任何东西”作为 .php 页面处理吗?

提前谢谢你。

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com