我读到,有可能有两个Wordpress安装,一个在另一个。具体来说,我在我的根目录中有第一个Wordpress站点:
https://wpsite1.com(这个安装是由托管服务Bluehost自动完成的,当我购买他们的托管空间时)。然后我创建了一个子目录并手动安装了另一个Wordpress:
https://wpsite1.com/wpsite2.htaccess文件wpsite1.com如下所示:
# Use PHP5.6 as default
# AddHandler application/x-httpd-php56 .php
# BEGIN WordPress
AddHandler application/x-httpd-ea-php70 .php
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access plus 6 hours"
ExpiresByType image/jpeg "access plus 6 hours"
ExpiresByType image/gif "access plus 6 hours"
ExpiresByType image/png "access plus 6 hours"
ExpiresByType text/css "access plus 6 hours"
ExpiresByType application/pdf "access plus 1 week"
ExpiresByType text/javascript "access plus 6 hours"
ExpiresByType text/html "access plus 10 minutes"
ExpiresByType image/x-icon "access plus 1 year"
ExpiresDefault "access plus 3 hours"
</IfModule>
Header set X-Endurance-Cache-Level "2"
<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
# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php70” package as the default “PHP” programming language.
<IfModule mime_module>
AddType application/x-httpd-ea-php70 .php .php7 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit而.htaccess新安装 /wpsite2的文件如下:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /wpsite2/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /wpsite2/index.php [L]
</IfModule>
# END WordPress如您所见,子目录存在于RewriteBase和RewriteRule中。但是,如果我访问这两个地点,我现在会收到以下错误:
“文件'wp-config.php‘已经存在。如果您需要重置该文件中的任何配置项,请先删除它。您可以尝试现在安装。”
状态代码是500

解决办法是什么?
发布于 2018-06-12 16:48:01
我认为您需要在一个单独的目录中安装另一个wordpress实例。
您需要在根目录中创建一个名为"wpsite2“的文件夹,并在其中安装第二个wordpress实例。你需要把数据库映射到它。
然后您可以访问https://wpsite1.com/wpsite2
最好与bluehost的支持团队打电话或聊天。
你可以把这个转过来。
上面提到的事情是为另一个wordpress安装。
如果您想在同一个wordpress安装中使用两个wordpress实例,可以在wordpress中引用"Multisite“。
https://stackoverflow.com/questions/50820283
复制相似问题