php - 输入网站网址后,我的网站没有打开,而是下载了

标签 php .htaccess web url error-handling

当我在浏览器中输入网站URL时,我的网站没有打开,而是在下载我的页面。有什么问题

最佳答案

您的问题缺少很多细节。看来您的网络服务器正在将您的php文件作为可下载文件提供,而不是执行它们。根据您所使用的Web服务器,建议您看一下以下先前询问的问题:

  • Apache: What causes PHP pages to consistently download instead of running normally
  • NGINX: Nginx serves .php files as downloads, instead of executing them
  • 关于php - 输入网站网址后,我的网站没有打开,而是下载了,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53814562/

    相关文章:

    wordpress - 使用htaccess将wordpress主页重定向到子页面

    c# - 使用 RedirectToAction 传递 View 模型

    PHP + HTACCESS + mod_rewrite + 不同长度的url段

    php - PDO PHP Mysql 在特定查询上速度慢

    apache - mod_rewrite 如果使用域 X 则重定向到特定 URL?

    .htaccess - 如何使用 htaccess 将 example.com/x/restofurl 重定向到 example.com/y/restofurl

    html - 固定 header 到 1140 网格系统

    Apache RewriteRule [L] 标志被忽略

    php - 注意undefined_index,使用带有两个表的select来访问两个表的字段

    php - Symfony2 动态注销目标?