【问题标题】:ERROR 404 IN PUBLIC DIRECTORY IN KOHANA CPANEL在 Kohana CPANEL 的公共目录中出现错误 404
【发布时间】:2015-05-19 19:55:36
【问题描述】:

从一个 VPS 迁移到 CPANEL 后,我无法访问公共目录,因为我得到 404

有什么问题?

我可以访问 whm

# Turn on URL rewriting
RewriteEngine On

# Installation directory
RewriteBase /

# Protect application and system files from being viewed
RewriteRule ^(?:application|modules|system)\b.* index.php/$0 [L]

# Allow any files or directories that exist to be displayed directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

# Rewrite all other URLs to index.php/URL
RewriteRule ^(.*)$ index.php?$1

在 public 文件夹中,我将此代码放在 .htaccess 中,但什么也没有:

RewriteEngine off

【问题讨论】:

  • vps = 虚拟专用服务器。 cpanel = 用于管理服务器的工具。您基本上是在说“从法拉利迁移到芝士堡之后,什么都没有用”。

标签: http-status-code-404 kohana cpanel public


【解决方案1】:

如果您拥有服务器的 root 访问权限,则通过 SSH 登录并检查您的 apache 服务器错误日志文件。可能是您的帐户文档根目录不正确,或者您在该路径上没有任何文件,因此请检查您的错误日志,以便您轻松找出问题的根本原因

【讨论】:

    猜你喜欢
    • 2017-12-31
    • 2011-07-06
    • 2019-01-20
    • 2020-08-17
    • 2018-10-30
    • 2021-12-15
    • 2011-10-25
    • 1970-01-01
    • 2023-03-21
    相关资源
    最近更新 更多