.htaccess 如何删除系统目录不存在
我正在尝试安装一个基于Kohana的脚本,但我遇到了一个错误,请参见上图 我找不到该做什么,但我很抱歉它与.Htaccess有关.htaccess 如何删除系统目录不存在,.htaccess,kohana,.htaccess,Kohana,我正在尝试安装一个基于Kohana的脚本,但我遇到了一个错误,请参见上图 我找不到该做什么,但我很抱歉它与.Htaccess有关 SetEnv KOHANA_ENV development # Protect hidden files from being viewed <Files .*> Order Deny,Allow Deny From All </Files> # Disable directory listing Options -
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>
SetEnv KOHANA_环境开发
#保护隐藏文件不被查看
命令拒绝,允许
全盘否定
#禁用目录列表
选项-索引
#启用URL重写
重新启动发动机
#安装目录
重写基/
#保护隐藏文件不被查看
命令拒绝,允许
全盘否定
#保护应用程序和系统文件不被查看
重写规则^(?:应用程序|模块|系统)\b.*index.php/$0[L]
#允许直接显示现有的任何文件或目录
重写cond%{REQUEST_FILENAME}-F
重写cond%{REQUEST_FILENAME}-D
#将所有其他URL重写为index.php/URL
#重写规则。*index.php/$0[PT]
重写规则。*index.php[PT]
#删除尾部斜杠
#重写规则^(.*)\/(\?.*)$$1$2[R=301,L]
#重写规则^(+)/$/$1[R=301,L]
#重写cond%{REQUEST_FILENAME}-D
#重写规则^(+)/$$1[L,R=301]
php\u值魔法\u引号\u gpc 0
php\u值寄存器\u全局0
php_值session.auto_启动0
php_值mbstring.http_输入传递
php_值mbstring.http_输出过程
php_值mbstring.encoding_翻译0
根据脚本所有者的说法,他们说执行步骤3
运行安装程序
打开.htaccess并进行以下更改:
设置正确的基础
但是我不知道写什么和编辑什么,我需要一些帮助来解决它这个错误意味着
应用程序
、模块
和系统
文件夹与index.php
不在同一个目录中。如果您已经移动/重命名了它们,则需要更改它们在index.php
中的位置
如果您无意中删除/修改了某些内容,请再次尝试下载Kohana,显然错误与.htaccess无关。
有关更多信息,请阅读文档您的屏幕显示光盘错误,而不是错误的web配置。