无法访问服务器上的子目录 [英] Can't access sub directory on server
本文介绍了无法访问服务器上的子目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经安装了它的词根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>
这篇关于无法访问服务器上的子目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文