Give a hero, ask to see what is the cause of the picture

Source: Internet
Author: User
Give a hero, what is the reason for the situation
I have no problem using the Apache test locally, and that's what happens when you upload a service to the company. The framework used for the project is tinkphp.



------to solve the idea----------------------
The server does not have a directory index defined or does not have the rewrite feature turned on.
------to solve the idea----------------------
You're like an IIS error.
Enable the parent path to
------to solve the idea----------------------
$url = ' http://www.wanpusoft.com/weixin/Web/index.html ';
Print_r (Get_headers ($url));

$url = ' Http://www.wanpusoft.com/weixin/Wechar ';
Print_r (Get_headers ($url));
Array
(
[0] = = http/1.1-OK
[1] = cache-control:max-age=1296000
[2] = content-type:text/html
[3] = Last-modified:thu, APR 07:53:40 GMT
[4] = Accept-ranges:bytes
[5] = ETag: "30f6d99c9a7dd01:0"
[6] = server:microsoft-iis/7.0
[7] = X-powered-by:asp.net
[8] = Date:thu, APR 07:28:33 GMT
[9] = Connection:close
[Ten] = content-length:8746
)
Array
(
[0] = http/1.1 404 Not Found
[1] = Cache-control:private
[2] = content-length:1898
[3] = = content-type:text/html; Charset=utf-8
[4] = server:microsoft-iis/7.0
[5] = x-aspnet-version:4.0.30319
[6] = X-powered-by:asp.net
[7] = Date:thu, APR 07:28:34 GMT
[8] = Connection:close
)


You can see that Weixin/wechar is not a directory
Although IIS7 is supported for Path_info, omitting the file name requires a URL rewrite.
------to solve the idea----------------------
Tp?
It's a mistake to write a file, please check the permissions
Please also empty the Runtime directory
  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.