PHP Project after local server deployment, all resource files are not loaded

Source: Internet
Author: User
Add a point before the path name to display normally








But can not be all the path of the project to add, ask God to solve it????


Reply to discussion (solution)

What is the URL you are visiting?

HTTP://LOCALHOST/PIG.VIFNN.COM-5.2-NEW/PIG.VIFNN.COM-5.2/, is the project downloaded from the server, the local run page load is wrong, in all the path before the point is solved but always can not add a dot,

What is the URL you are visiting?


HTTP://LOCALHOST/PIG.VIFNN.COM-5.2-NEW/PIG.VIFNN.COM-5.2/, is the project downloaded from the server, the local run page load is wrong, in all the path before the point is solved but always can not add a dot,

/representative starting from the root directory, of course not, unless you will pig.vifnn.com-5.2-new/pig.vifnn.com-5.2 these two directories removed, directly to http://localhost/access.

Assume that your site root directory is/webroot
So, your project is
/webroot/pig.vifnn.com-5.2-new/pig.vifnn.com-5.2
The style sheet is
/webroot/pig.vifnn.com-5.2-new/pig.vifnn.com-5.2/tpl
In the catalog.

Set the virtual directory to do it.
Alias/tpl "/webroot/pig.vifnn.com-5.2-new/pig.vifnn.com-5.2/tpl"


/representative starting from the root directory, of course not, unless you will pig.vifnn.com-5.2-new/pig.vifnn.com-5.2 these two directories removed, directly to http://localhost/access.


Well, I put the project in these two directories, the project various folders directly to the root directory, with http://localhost/access can be. Thanks, man.

Landlord can you elaborate on how you solve?

If you put it in the root directory, it would be messy, because www is full of files and folders for that project.

  • 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.