Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/cplusplus/149.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Joomla 乔姆拉罐头';t打开模板目录_Joomla - Fatal编程技术网

Joomla 乔姆拉罐头';t打开模板目录

Joomla 乔姆拉罐头';t打开模板目录,joomla,Joomla,当我打开example.com/templates/something.php时,我得到一个错误 The requested URL /templates/ was not found on this server. Apache Server at example.com Port 80 如果我尝试在localhost中打开,它可以正常工作,但在宿主中则不行。可能有什么问题?为什么要尝试直接访问模板文件?使用Joomla,您不需要直接打开模板文件。即使如此,这也没有关系,如果您尝试在浏览器

当我打开
example.com/templates/something.php
时,我得到一个错误

The requested URL /templates/ was not found on this server.

Apache Server at example.com Port 80

如果我尝试在localhost中打开,它可以正常工作,但在宿主中则不行。可能有什么问题?

为什么要尝试直接访问模板文件?使用Joomla,您不需要直接打开模板文件。即使如此,这也没有关系,如果您尝试在浏览器上请求,它会返回200 OK。您的虚拟主机设置正确吗?当您单独请求example.com时会发生什么?