Home > Backend Development > PHP Tutorial > php项目在本地服务器部署后全部的资源文件加载不上

php项目在本地服务器部署后全部的资源文件加载不上

WBOY
Release: 2016-06-13 12:09:33
Original
1231 people have browsed it

php项目在本地服务器部署后所有的资源文件加载不上

在路径名称前加一个点可以正常显示





<script></script>
<script></script>
<script></script>
但总不能所有工程项目的路径都加,求大神解决一下????
------解决思路----------------------
/  代表从根目录开始,当然不对了,除非你将 pig.vifnn.com-5.2-new/pig.vifnn.com-5.2 这两个目录去掉,直接以http://localhost/访问才行。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template