0

我在 root 上安装了 wordpress。现在我想要的是,我将创建一个名为 test 的文件夹并将一些文件放在那里并尝试访问它,但由于我猜是 htacess 文件,我无法访问该文件夹。

我的 htacess 文件是这样的

RewriteEngine Off

SetEnv DEFAULT_PHP_VERSION 53

DirectoryIndex index.cgi index.php

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

文件夹结构是这样的

./wp-content
./wp-admin
./...
./...
./bot
4

1 回答 1

0

如果是 .htaccess 问题,您可以在测试文件夹中创建另一个 .htaccess 文件并覆盖其父级的设置。

您可能需要将以下内容添加到您的父 .htaccess 文件中以启用级联:

 AllowOverride All

http://httpd.apache.org/docs/2.2/mod/core.html#AllowOverride

于 2013-09-11T13:16:32.003 回答