Heim  >  Artikel  >  Backend-Entwicklung  >  网站php页面可以打开,请问打不开html、txt等是什么原因啊?css、js打开正常

网站php页面可以打开,请问打不开html、txt等是什么原因啊?css、js打开正常

WBOY
WBOYOriginal
2016-08-20 09:04:181524Durchsuche

网站php页面可以打开,请问打不开html、txt等是什么原因啊?css、js打开正常
lnmpa环境
网站php页面可以打开,请问打不开html、txt等是什么原因啊?css、js打开正常

火狐这样提示的:
网站php页面可以打开,请问打不开html、txt等是什么原因啊?css、js打开正常

回复内容:

网站php页面可以打开,请问打不开html、txt等是什么原因啊?css、js打开正常
lnmpa环境
网站php页面可以打开,请问打不开html、txt等是什么原因啊?css、js打开正常

火狐这样提示的:
网站php页面可以打开,请问打不开html、txt等是什么原因啊?css、js打开正常

首先看下url有没有错,再看下文件是否存在,然后再检查一下权限. (其实最简单的是直接查看服务器的日志)

可能是被重定向了, 因为css, js是静态资源, 所以没有被重定向.
如果使用的服务器是apache, 那么检查根目录下的.htaccess. 把html, txt加进去

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn