Second istance of WordPress in subdirectory, links 404 in the root-site
-
I tried searching, most people have similar but not wuite the same issues and the proposals I did find didn’t work, so here goes:
I have a wordpress website for a client who wants a second wordpress website installed in a subdirectory for a second location of his company. So we have:
https://www.company.nl > the “main” site
https://www.company.nl/location > the new location siteI installed the second WordPress on the ftp in the https://www.company.nl/location folder, “www.company.nl/location” is set in the settings, everything works like a charm until I try to click on menu-items that lead to pages or posts. Then, the site redirects me to the wordpress site at https://www.company.nl with a “page not found” error.
I have a hunch that it has something to do with the htaccess file but so far google-ing similar issues with other people hasn’t shown me anything wrong with it. This is my htaccess file for the subdirectory:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /location/
RewriteRule ^index\.php- $ [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /location/index.php [L]
</IfModule># END WordPress
Should I change anything else?
The funny thing is, I tried the same construction before (though with a different webhosting company) and had no issues whatsoever. Could that matter at all? Should I contact them to ‘refresh’ something maybe?I hope somebody has encountered this situation. I tried searching the forum but I end up at multi-site installations, which I didn’t use. So my apologies if this question has been raised multiple times…
- The topic ‘Second istance of WordPress in subdirectory, links 404 in the root-site’ is closed to new replies.