简体   繁体   中英

Multiple wordpress installations on same server

I have three different wordpress sites on my server located like this:

/www -> main site

/www/site2/

/www/site3/

The main site is working but the site2 and site3, which are the wordpress sites inside the folder aren't. I'm getting the following error on site2 and site3, I think it has to do with the 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

I have the htaccess on /www/site2/ configured like this:

# 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

Any idea what I'm doing wrong and how should I configure the htaccess?

更改RewriteBase /RewriteBase /site2//www/site2/RewriteBase /site3//www/site2/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM