WPFC interferes with a rewrite rule
-
On a hosting account I have the domains brasseria .nl and frieteria .nl. Brasseria is the main website, so everybody that visits frieteria should be redirected to brasseria. I use the following rewrite rule to do that:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTP_HOST} !^(www\.)?brasseria\.nl$ [NC]
RewriteRule ^https://www.brasseria.nl%{REQUEST_URI} [L,R=301]
</IfModuleThis rule works with WPFC disabled, but it stops working as soon as I enable WPFC.
How can this be fixed? I really need this simple rewrite rule to redirects all domains that are not the main domain, because I also have websites with many more ‘old’ domains pointing to them, and I don’t really want to list all the pointers individually.
Thanks
JPUpdate:
I did a bit more testing and found that two out of six http/www possible requests are not correctly redirected with WPFC enabled:
Not redirected to https://www.brasseria.nl
www.frieteria.nl
https://www.frieteria.nl
Correctly redirected to https://www.brasseria.nl
frieteria.nl
https://frieteria.nl
https://frieteria.nl
https://www.frieteria.nl
- You must be logged in to reply to this topic.