Domain with or without www, how does it work?
From the very beginning, my large site had a domain without www and there was a redirect everywhere, the site itself was poorly indexed and showed less than 100 keywords on several thousand pages. After we decided to move it to another server, it somehow happened that the redirect from www failed and the site was accessible both with and without www And literally a couple of days later I noticed that Google decided to send a huge number of requests and crawl our entire site, every page, and literally in a day added about 700 thousand pages to the index, and about 4 thousand keywords in a week. True, he started complaining about the canonical link, because when we output it, we didn’t have a function that tracks the presence of www After I noticed this, I returned our redirect back, and along with the redirect, our pages disappeared in the search, literally in 2 days after installing the redirect, about 400 thousand pages disappeared from the search results and keywords began to disappear little by little Can someone explain this magical behavior of the search engine? Has anyone encountered this?

From the very beginning, my large site had a domain without www and there was a redirect everywhere, the site itself was poorly indexed and showed less than 100 keywords on several thousand pages.
After we decided to move it to another server, it somehow happened that the redirect from www failed and the site was accessible both with and without www
And literally a couple of days later I noticed that Google decided to send a huge number of requests and crawl our entire site, every page, and literally in a day added about 700 thousand pages to the index, and about 4 thousand keywords in a week.
True, he started complaining about the canonical link, because when we output it, we didn’t have a function that tracks the presence of www
After I noticed this, I returned our redirect back, and along with the redirect, our pages disappeared in the search, literally in 2 days after installing the redirect, about 400 thousand pages disappeared from the search results and keywords began to disappear little by little
Can someone explain this magical behavior of the search engine? Has anyone encountered this?