subpages are redirecting to the homepage

And there’s no redirection happening in the .htaccess file? You may want to check the control panel at WPEngine and verify that there’s not a redirection setup in their panel. It won’t be a canonical URL issue as that doesn’t affect redirection, only indexing in search engines. If I enter https://stgtrulite.wpengine.com/platform/?123 it redirects to https://stgtrulite.wpengine.com/?123 … Read more

How is WordPress redirecting/rewriting my URL?

Try the wordpress maxmind plug-in. I’ve never used it myself, but it should do the heavy lifting of identifying a user’s location by IP address. You’ll have to add some functions to dictate what to do with that data in terms of redirecting visitors (the plug-in only figures out where they are). You’ll probably also … Read more

Too may redirects when i use the wp_redirect() function

This will help you want you want to achieve. // Add option register_activation_hook( __FILE__, ‘me_shakeeb_install’ ); function me_shakeeb_install() { $result=”signup”; // Perform your logic here to decide where to redirect add_option( ‘me_shakeeb_redirect_to’, $result ); } // Check Option add_action( ‘init’, ‘me_shakeeb_signup_check’ ); function me_shakeeb_signup_check() { /** * Redirect to about page. */ if ( false … Read more

wp_redirect only works for external pages

Next should be in a comment, not in a answer, but is too long, so I’m sorry posting here and hope it helps. You don’t post the code, but it seems you are experiencing and endless redirect. Usually this happen when: The page is opened, user is not logged and so redirect The page is … Read more