To get easy to understand the problem, I will call the site that had the redirection of "A" and the destination of "B"
A 301 (rather than 302) redirect was made from site A to site B without any expiration date, since the server was not sending the expires headers, users who accessed at the moment continue to be redirected to site B, even with the .htaccess redirection removed (default behavior of a 301 redirect).
However, site A is well-accessed and in the time it was that way, some users have accessed it. Fortunately both domains are properties we have access to, however we can not create another redirect (even though 302) from site B to site A, to invalidate the previous one in browsers that have already cached.
This technique works, however, site B is also highly accessed.
I wonder if there is any way to clear this redirect in browsers that have cached without user intervention.
One possible solution was to detect if site B was accessed by site A and manage this by some script in PHP for example (creating a redirect back, only when it had been from source site A, creating a loop that invalidates the cache). However I did not find any variables that could determine that the site was redirected and its source was site A.
Updated
I have received some answers to invalidate the cache, they work, however I can not leave domain B redirecting to A to invalidate the cache, because both are different and well-accessed sites.
>Is there a solution to this problem?