在同一台服务器上安装多个wordpress

时间:2016-03-08 15:25:33

标签: php wordpress apache .htaccess

我的服务器上有三个不同的wordpress站点,如下所示:

/ www - >主要网站

/网络/站点2 /

/网络/ site3 /

主站点正在运行,但site2和site3是文件夹内的wordpress站点,不是。我在site2和site3上收到以下错误,我认为它与htaccess有关:

Warning: include(modules/.php) [function.include]: failed to open stream: No such file or directory in /www/index.php on line 154

Warning: include() [function.include]: Failed opening 'modules/.php' for inclusion (include_path='.:/usr/share/pear') in /www/index.php on line 154

我的/ www / site2 /上的htaccess配置如下:

# 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

知道我做错了什么以及如何配置htaccess?

1 个答案:

答案 0 :(得分:2)

RewriteBase /改为RewriteBase /site2/改为/www/site2/改为RewriteBase /site3/改为/www/site2/