Forum Moderators: Robert Charlton & goodroi
to modify the Apache server to return 410 error messages for all the URLs under 'products2.example.com' and 'products3.example.com', with another message for humansYou mean, return a 410 for all non-root requests, or for ALL requests? Either way is very straightforward, and once you’ve got the 410 in place, you can take your time about physically removing the files, since nobody can reach them anyway. Not sure what you mean by “another” message. The 410 page should be the same for everyone, though only humans will actually read it. But do make a good custom 410 page; the Apache default is not very human-friendly.
I suggest using a 301 redirect to point traffic to related resources on the main domain.
You mean, return a 410 for all non-root requests, or for ALL requests?
Not sure what you mean by “another” message.
The key question is whether you plan to retain any of the content for product2 and product3, moving it to the main site.