Redirect issues when creating WP site


When I run ee site create I get a bug where the www redirects aren’t always created.

Normally, a file with the redirect rules for the site should be created here:

But on some occasions they’re never created and the www version of a new site will redirect to another site on my server.

I’ve fixed this by adding the correct rules manually but I’m just wondering why it does this for me some times and other times I have to create it manually.


What was the step by step that you followed to correct this error?