'Subdomains are not reachable after installing new website (.htaccess)

we having problems with our subdomains after installing a new website on our main adress.

our main adres: https://vlinderdreef.be Our subdomains:

Before the new website everything works fine. Now we can only reach the websites on like this: https://vlinderdreef.be/oudercomite

How i fix this problem?

This is the .htacces code:

# BEGIN WordPress
# De richtlijnen (regels) tussen "BEGIN WordPress" en `END WordPress` worden
# dynamisch gegenereerd en zouden alleen aangepast mogen worden via WordPress filters.
# Elke wijziging aan deze richtlijnen tussen deze markeringen worden overschreven.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [NC,L,NS]
</IfModule>

# END WordPress

RewriteEngine on

#Fix missing trailing slash character on folders.
RewriteRule ^([^.?]+[^.?/])$ $1/ [R,L]

#Map schoolfeest subdomain to schoolfeest folder
RewriteCond %{HTTP:Host} ^(?:schoolfeest\.vlinderdreef\.be)?$
RewriteCond %{REQUEST_URI} !^/schoolfeest/
RewriteRule ^(.*) schoolfeest/$1 [NC,L,NS]
RewriteRule ^$ schoolfeest[L]


#Map schoolfeest subdomain to kleuterschool folder
RewriteCond %{HTTP:Host} ^(?:kleuterschool\.vlinderdreef\.be)?$
RewriteCond %{REQUEST_URI} !^/kleuterschool/
RewriteRule ^(.*) kleuterschool/$1 [NC,L,NS]
RewriteRule ^$ kleuterschool[L]


#Map oudercomité subdomain to oudercomité folder
RewriteCond %{HTTP:Host} ^(?:oudercomite\.vlinderdreef\.be)?$
RewriteCond %{REQUEST_URI} !^/oudercomite/
#RewriteRule ^(.*) oudercomite/$1 [NC,L,NS]
RewriteRule ^$ oudercomite [L]


Solution 1:[1]

I have switched the positions of the rewrite rules for the subdomains above the #wordpress partition and now 2 of 3 subdomains are reachable.

Only https://oudercomite.vlinderdreef.be redirects to the main domain (vlinderdreef.be)

I don't have a clue why this happens.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 tomversc