Permalinks, 404, Multiple installs, One server
-
Hi,
I’ve searched this forum and tried many solutions offered but I still have this tricky problem. Please help.
On my server I have two WP instances installed in separate directories, each with their own database.
/var/www/site1
/var/www/site2The homepage of site1 is actually at https://nnn.nnn.nnn.nnn
but site2 is at https://nnn.nnn.nnn.nnn/site2All works OK except if I enable the permalinks to anything other than the default. What happens is a 404 error.
mod_rewrite is enabled, .htaccess is writable by WP (666), the AllowOverride directive is All. Here’s my .htaccess from the / directory.
# 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
I would like to have site1 posts linked at baseurl/postname, but even if it is baseurl/site1/postname this would be an improvement over the dreaded 404 error.
Can anyone help please?
- The topic ‘Permalinks, 404, Multiple installs, One server’ is closed to new replies.