douchixu3686 2015-11-11 06:08
浏览 18

HTML未在.php文件中加载[关闭]

[UPDATED]

I have two files on my web server: test.php and test.html

Both test.php and test.html contain the same code:

<html>
<head>
<title>Hello World</title>
</head>
<body>
<p>Hello</p>
</body>
</html>

test.html prints out 'Hello' as expected but test.php is returning a blank page. What could be the problem

Contents of .htaccess:

RewriteEngine On
RewriteRule ^http://www.alcratech.com/index.html$ https://www.alcratech.com/index.html [R=301,L] 

Contents of

  • 写回答

1条回答 默认 最新

  • dsxd62219570 2015-11-11 06:30
    关注

    It looks like your PHP is misconfigured, and invoking it results in a server error. Possible reasons might be for example loading a non existing extension in your php.ini file. You need to check your apache error log to check this. If you are using PHP-FPM check if it is started and running, also check the php-fpm error log.

    评论
    编辑
    预览

    报告相同问题?

    手机看
    程序员都在用的中文IT技术交流社区

    程序员都在用的中文IT技术交流社区

    专业的中文 IT 技术社区,与千万技术人共成长

    专业的中文 IT 技术社区,与千万技术人共成长

    关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

    关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

    客服 返回
    顶部