In my unsubscribe script there is this command:
http://www.domain.nl/email-acties/[email protected]
after the unsubscribe I like to change the url into
http://www.domain.nl/email-acties/
But WordPress does not accept again header(). Also try
echo esc_url( remove_query_arg( 'email' ) );
That works but does not rewrite the url.
Question:
How can I rewrite the url as written above
init
ortemplate_redirect