Million emergency thinkphp in the HTML template inside the picture path how to call

Source: Internet
Author: User
Million emergency thinkphp in the HTML template inside the picture path how to call
The MyWeb project name is placed in the web directory

Thinkphp put it under the myweb.
Entry file:/index.php
Templates placed in:/tpl/default/index/, such as index.html
Picture directory in:/tpl/default/public/iamges/directory, such as Logo.png
Using the logo.png image in Index.html, I set the absolute path to the picture:.
The problem arises:
I use: http://localhost/myweb/Tpl/default/index/index.html pictures can be displayed normally,
But to run http://localhost/myweb/index.php/index/index/in the portal file, the picture is not displayed,
Of course, the two types of access, the page content can be displayed normally, is the picture display problem, and CSS can not be called


------Solution--------------------
Use it on the page

Or you can set up a virtual host

http://www.myweb.com = Http://localhost/myweb

Then use it on the page
  • 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.