简体   繁体   English

将站点从linux / apache移至Windows2008 / iis7后的404

[英]404 after moving site from linux/apache to windows2008/iis7

Afrter moving site from RedHAT/CloudLinux/ Apache 2.2 to to Windows 2008 R* / IIS7 got a 404 error : 404 - File or directory not found. 从RedHAT / CloudLinux / Apache 2.2迁移到Windows 2008 R * / IIS7的Afrter站点出现404错误:404-找不到文件或目录。 The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable. 您正在寻找的资源可能已被删除,名称已更改或暂时不可用。

This is only .php files but images (png and gif) open correct. 这只是.php文件,但是图像(png和gif)可以正确打开。 Can't test html because use it only loke view and have not permission to create and test dummy html. 无法测试html,因为只能使用它来查看视图,并且没有创建和测试虚拟html的权限。

Please help. 请帮忙。

Somewhere in IIS (I can't remember where) you specify how each file type (by extension) is handled. 在IIS的某个位置(我不记得在哪里),您指定如何处理每种文件类型(按扩展名)。 The fact that it is only the .php files that are 404ing is the clue - see how IIS has been configured to treat .php files. 线索仅是.php文件这一事实,这就是线索-查看IIS如何配置为处理.php文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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