Answers for "stop redirect wordpress"

PHP
5

redirect wordpress

add_action( 'template_redirect', 'redirect_to_other_page' );
function redirect_to_other_page() {
    if ( is_page( 143 ) ) {
	  
      wp_redirect( '"'.home_url().'/services/messenger/"', 301 );
      ///wp_redirect( 'example.com/page', 301 ); 
    exit;
    }
}
Posted by: Guest on April-12-2021
1

wordpress stop redirect to https

// add this to the bottom of your wp-config.php
define('FORCE_SSL_ADMIN', false);
Posted by: Guest on July-22-2021

Browse Popular Code Answers by Language