My Wordpress website got hacked. It redirected the user to some spam website.
Since than I already cleaned the website and the problem does not occur anymore.
The problem is, that my visitors are still redirected to the spam website until they clean they cache or stop the redirect and reload the page.
I'm not really sure what to do, to fix this. I know I can't remove the user's cache remotely, but there sure must be some way how to tell their browser, that there are changes on the site before the redirect starts.
I already added this code to the website:
<meta http-equiv="cache-control" content="max-age=0" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />
<meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" />
<meta http-equiv="pragma" content="no-cache" />