如何删除系统目录不存在

时间:2017-02-01 13:48:40

标签: .htaccess kohana

我正在尝试安装基于Kohana的脚本,但我遇到了错误,请参阅图像上方

Error

我找不到该做什么,但我认为它与.Htaccess相关

  SetEnv KOHANA_ENV development

# Protect hidden files from being viewed
<Files .*>
    Order Deny,Allow
    Deny From All
</Files>


# Disable directory listing
Options -Indexes 


<IfModule mod_rewrite.c>

# Turn on URL rewriting
RewriteEngine On

# Installation directory
RewriteBase /

# Protect hidden files from being viewed
<Files .*>
    Order Deny,Allow
    Deny From All
</Files>


# 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/$0 [PT]
RewriteRule .* index.php [PT]

# Remove trailing slash
# RewriteRule ^(.*)\/(\?.*)?$ $1$2 [R=301,L]
# RewriteRule ^(.+)/$ /$1 [R=301,L]
# RewriteCond %{REQUEST_FILENAME} !-d
# RewriteRule ^(.+)/$ $1 [L,R=301]

</IfModule>

<IfModule mod_php5.c>
  php_value magic_quotes_gpc                0
  php_value register_globals                0
  php_value session.auto_start              0
  php_value mbstring.http_input             pass
  php_value mbstring.http_output            pass
  php_value mbstring.encoding_translation   0
</IfModule>

根据脚本所有者他们说做第3步  运行安装程序

打开.htaccess并进行以下更改:

设置正确的RewriteBase

但我不知道写什么以及在其中编辑什么我需要一些帮助

1 个答案:

答案 0 :(得分:1)

该错误表示applicationmodulessystem文件夹与index.php不在同一目录中。如果您已移动/重命名,则需要在index.php中更改其位置。

如果您意外删除/修改了某些内容,请尝试再次下载Kohana,显然该错误与.htaccess无关。 有关详细信息,请阅读文档https://kohanaframework.org/3.3/guide/kohana/install