If the redirect comes from WordPress code, you can find out who is calling wp_redirect() by hooking into it:
add_filter( 'wp_redirect', 'wpse12721_wp_redirect' );
function wpse12721_wp_redirect( $location )
{
// Get a backtrace of who called us
debug_print_backtrace();
// Cancel the redirect
return false;
}
Related Posts:
- Redirecting to home-page when saving any edited code
- All pages showing up as homepage on WordPress website
- https multiple redirects
- Redirect home to another page with htaccess
- How can I redirect my website’s homepage to a random blog post?
- How to redirect to home page after registration?
- How to set up a single portfolio page as home page?
- Any action in wordpress redirects me to home page
- How can I replace my primary url globally with a parked one?
- Extra Text in URL
- Redirect /home to home.php
- How do I change the home page to the registered user’s profile page
- How to redirect all page requests to a single “goodbye” homepage? [duplicate]
- Add new post redirection [closed]
- How to Redirect WordPress domain.com/?anyword to 404 Page?
- How do I redirect the browser to 404 page, if no posts are found in home page
- Site using static homepage, redirects (301) and removes pluses from query string
- After disabling Multisite, homepage redirects to non-existing page
- One set of Child Pages redirecting to Home page?
- WordPress Redirecting Form Action to Home Page
- How do make WordPress to let alone my static home page?
- Make category page the wordpress homepage (not blog)
- Redirect Restricted Page to 404
- Redirect user to original url after login?
- Redirect to dashboard after login
- Make a video post redirect to next post after completion
- Site redirects to wrong url when saving settings
- Redirect blog page to latest post?
- WordPress site redirects to different wordpress domain on the same server after reuploading db backup
- WordPress Redirect based on the prescence of a cookie
- Links to an exisiting Page are now redirecting to a draft page?
- Redirection errors
- WordPress CMS – hide content from public while in editing stages
- Redirect to a page after a few seconds
- How to redirect only if page doesn’t exists
- how to do logout redirect to current url
- htaccess redirect – directory and subpages to a single page
- Plugin for conditional redirect
- url keeps redirecting to a page
- Redirects from Tumblr to new WP
- Why does multisite bypass WordPress for wp-content, wp-admin, wp-includes and .php files?
- Redirect “Sorry, you are not allowed to access this page.” to Home
- Redirecting to old domain, tried everything, nothing works
- How to modify the Register link in the login page?
- WordPress redirecting to 127.0.0.1 when accessing the site from a remote device
- Changing “Lost Password Email Link” to custom password reset page
- Redirect a page id url but not the page slug
- Redirect based on parameter in url
- Stop wordpress redirecting www to non-www
- WordPress Global Redirect
- Why does wp_redirect strip out %0A (url encoded new line character) and how do I make it stop?
- htaccess redirect – replace special character
- Redirect Logged In User if page is wp-login.php and $_Get[‘level’] = X
- WordPress url incomplete redirects to first article with that name
- Right hook to redirect frontend visitors while respecting rest api plugins to run first?
- Redirect loop after changing nameserver [closed]
- Create a page that automatically redirects to latest post of a specific tag/category?
- Is it possible to incorporate username in a login redirect?
- How to make wordpress folder (/wordpress) redirect to /?
- Changing domain
- WordPress Multisite Strange Redirect on Primary Site
- How to redirect on login to a specific page if a specific meta user is empty
- Redirecting amp url to non amp url
- How To Redirect /url.html to /url?
- Redirect htaccess does not work correctly with my new wordpress site
- Remove #wpcf7-f2450-o1 with Contact form 7 redirect [closed]
- Redirecting deleted posts url to another WordPress install
- How to redirect just one or two blog posts correctly?
- Force WordPress https redirect before www redirect based on site address url
- Prevent wordpress autoredirect
- Custom form redirect after login
- How to redirect only 404 pages with htaccess in WordPress
- How to redirect the frontend of a WordPress site (only)?
- Redirect Attachment Page to Attachment
- Redirect away from page if user is not admin
- Upload Directory question
- 301 Redirect /author/username/ to /profile/username/
- Redirection with a wildcard
- How can I stop redirecting from a search to a taxonomy archive page
- How to return a 410 code for previously published posts now set to draft?
- The / location 301-redirects to itself in a loop
- Redirect user from backend to frontend
- Need to redirect from Apache2 Ubuntu Default Page to home page in wordpress
- Make a treatment before the action of the form
- Is it possible to take a new visitor to the site to a disclaimer page and then return them to their previous page?
- How to 301 redirect sub domain post URL to root domain
- Homepage (domain) that redirects user toward two subdomains based on his/her preferred language
- redirect to another page if user has registered successfully
- Too many redirects error when change of base url
- How to redirect new registrars to a custom registration page instead of WP default registration page?
- WordPress redirect users from certain countries to subpage of language version
- When redirecting all URLs to homepage, what exceptions do I need to make?
- Redirect from subdomain
- How to handle expired assets/content when user has direct URL
- Best SEO way to redirect from all “posts” to home url
- Is there a way to redirect people from a page on my .com website to a corresponding page on my .co.uk website if they are in the UK
- How to find out what is causing redirect of static content?
- Where to add wp_redirect on frontend pages?
- Running non-WordPress PHP files
- My Pages Have Been Redirected Automatically in WordPress. How to Stop It?