我有一个服务器,它的根目录上安装了wordpress(它已经上线了(。现在我已经在root上创建了一个新目录,并希望在其上安装另一个wordpress。当我尝试访问该子目录时,其显示页面未找到错误。
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
尝试了以下方法,但没有奏效
ErrorDocument 401 default
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} ^/english/(.*)$ [OR]
RewriteRule ^.*$ - [L]
</IfModule>
子目录名称为英文。
谁能帮忙!!!提前致谢
如果你在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>
这个在英文子文件夹中:
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>