07-26-2023, 10:24 PM
There is an HTML form input. Here's the code:
<?php if(isset($_POST['login'])) {
wp_redirect("/");
}
<form accept-charset="UTF-8" method="post" >
...
<center><input name="login" type="submit" value="вход" />
</form>
But redirect doesn't work. Install debug plugin redirects to wp, that's what it showed.
PS:
<?php wp_redirect( 'http://www.example.com', 301 ); exit; ?>
It does not work either.
<?php if(isset($_POST['login'])) {
wp_redirect("/");
}
<form accept-charset="UTF-8" method="post" >
...
<center><input name="login" type="submit" value="вход" />
</form>
But redirect doesn't work. Install debug plugin redirects to wp, that's what it showed.
PS:
<?php wp_redirect( 'http://www.example.com', 301 ); exit; ?>
It does not work either.