Login/Register redirect user with message
Login/Register redirect user with message
Login/Register redirect user with message
ReDirect subfolder link to another sub-folder and force SSL
.htaccess 301 redirect conflict with plugin “WordPress Https”
URL masking of subdomain to main domain using .htaccess
Use template_include with your conditional for first time visitor: add_filter( ‘template_include’, ‘first_time_visitor_template’, 99 ); function first_time_visitor_template( $template ) { if ( // your conditional for first time visitor { $new_template = locate_template( array( ‘first-time-template.php’ ) ); if ( ” != $new_template ) { return $new_template ; } } return $template; } Do NOT use template_redirect … Read more
Usage of the login_redirect filter
You could approach the problem from the other side and look up the post based on the HTTP_REFERER, available in the $_SERVER superglobal: http://php.net/manual/en/reserved.variables.server.php You could perform a lookup of the page based on the URL of $_SERVER[‘HTTP_REFERER’] and get post information that way. You can also keep your 301s cleaner by not adding referrer … Read more
The solution seems to be adding the input[type=”hidden”] form element called redirect to the login-form.php in wp-content/themes/my-theme/woocommerce/myaccount directory with the value corresponding to your desired address taken from GET parameters. In my case: <input type=”hidden” name=”redirect” value=”<?= $_GET[‘redir’]; ?>”> Source: WordPress Support Forums
How to use https on one page only?
Remove #wpcf7-f2450-o1 with Contact form 7 redirect [closed]