【发布时间】: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