无法访问服务器上的子目录子目录、无法访问、器上

2023-09-02 01:01:24 作者:荷尔蒙打造非凡液体

我已经安装了它的词根preSS服务器(它已经活)。现在,我已经创建了根新的目录,并要安装that.When我试图访问未发现子目录的显示页面错误另一个词preSS。

I had a server with wordpress installed on its root(it's already live). Now i have created a new directory on root and want to install another wordpress on that.When i tried to access that sub directory its showing page not found error.

My .htaccess file is as follows

# BEGIN s2Member GZIP exclusions

<IfModule rewrite_module>

 RewriteEngine On

RewriteBase /

RewriteCond %{QUERY_STRING} (^|?|&)s2member_file_download=.+ [OR]

RewriteCond %{QUERY_STRING} (^|?|&)no-gzip=1

RewriteRule .* - [E=no-gzip:1]

</IfModule>

# END s2Member GZIP exclusions

# 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

试过以下,但没有奏效。

tried the following but didn't work

ErrorDocument 401 default
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} ^/english/(.*)$ [OR]
RewriteRule ^.*$ - [L]
</IfModule>

子目录的名称是英文的。

sub directory name is english.

谁能帮助!!!! 在此先感谢

Can anyone help!!!! Thanks in advance

推荐答案

应该工作,如果你有htdocs中这条规则:

Should work if you have this rule in htdocs:

Options +FollowSymLinks

<IfModule rewrite_module>
    RewriteEngine On
    RewriteBase /
    # BEGIN s2Member GZIP exclusions
    RewriteCond %{QUERY_STRING} (^|?|&)s2member_file_download=.+ [OR]
    RewriteCond %{QUERY_STRING} (^|?|&)no-gzip=1
    RewriteRule .* - [E=no-gzip:1]
    # END s2Member GZIP exclusions

    # BEGIN WordPress
    RewriteRule ^index.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    # END WordPress
</IfModule>

和这个用英语子文件夹:

And this in english subfolder:

ErrorDocument 401 default
<IfModule mod_rewrite.c>
    Options +FollowSymLinks
    RewriteEngine On
    RewriteBase /english/
    RewriteRule ^index.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
</IfModule>