Skip to content
Read For Learn
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP

Multisite infinite redirect loop

If I’m not mistaken you have to set the cookie paths and domain, like it is explained here:

  • Resolving The WordPress Multisite Redirect Loop

by Tom McFarlin. In a nutshell:

In your wp-config.php file, add the following lines of code:

define('ADMIN_COOKIE_PATH', "https://wordpress.stackexchange.com/");
define('COOKIE_DOMAIN', '');
define('COOKIEPATH', '');
define('SITECOOKIEPATH', '');

And do so just before the line that reads:

/* That's all, stop editing! Happy blogging. */

Once done, the redirect issue should be resolved.

Related Posts:

  1. Is there a is_user_logged_in() for multisite?
  2. Unable to login to new custom domain on multisite?
  3. share login/logout sessions across two installs?
  4. How to Login Once to an Entire WP Multisite Network
  5. Multisite – Redirect All Users to Subsite Home Page on Subsite Login
  6. WordPress Multisite Login Access
  7. Subdomain login problems
  8. WordPress Multisite local: wp-login.php refreshes on login Chrome Browser
  9. ‘Remote Login’ with MultiSite Domain Mapping still forcing users to login to all blogs individually?
  10. How to stay logged in on a multisite with different domains?
  11. Login on Multiple Sub-Domains without Multisite
  12. Fresh Multisite Install – Can’t Log In
  13. Auto Redirect after login
  14. WordPress MultiSite login to the respective site
  15. How to fix blocked cookies error that doesn’t let me log into wp-admin?
  16. Good way to block users within a multisite setup without deleting them?
  17. Automatically login user across multisite
  18. How can you override the is_multisite check in wp-login.php for individual login/registration?
  19. How to write RewriteRule for login in multisite
  20. Multisite Login problem
  21. Https and Http Login Issue on WordPress Multisite
  22. Different Domains in Multisite Setup
  23. Disable site visiting and user logins excepting for a specific user
  24. Infamous admin login redirect
  25. Is there something I need to know in order to use WordPress on foreign (Swedish) TLDs?
  26. Restrict users of site 1 to login in site 2 in wordpress multisite
  27. Unable to execute Ajax request, status code 400
  28. How to display custom logo on WordPress login page
  29. Moving from a non WordPress site to a WordPress Site – Login between both sites
  30. WordPress Multisite: Login to all subsites at once
  31. Multisite – site user limited only for this site
  32. Unable to sign in to network after moveing address but able to login into child sites
  33. User not staying logged into one of sub sites in multisite after SSL
  34. Single sign on to sub-sites in Multisite Network
  35. WordPress automatic Login on other page?
  36. how to make a cronjob run, when user needs to be logged in
  37. WordPress Network with SSL for multiple domains
  38. Why does this multisite redirection loop vanish when I add “www.”?
  39. One login for 3 WordPress installations with combined user table doesn’t work
  40. Multisite: Redirect Subsite Administrator to Subsite Home Page, Bypassing Dashboard
  41. Admin user getting redirected to /wp-admin/user
  42. How to login a user with wp_set_auth_cookie on a specific blog within a multisite environment
  43. Is it possible to create a login for restricted visibility?
  44. How do I combine wp_redirect and add_filter?
  45. Some Subdomains on a Multisite Install Not Found
  46. Common login for websites belonging in different networks
  47. Best Way to Setup a Network of WP Sites?
  48. WordPress Multisite restict user access
  49. Error Message when logging into WordPress on Xampp
  50. WordPress MU: Cookie error when trying to login on network WP instance
  51. something in database is causing me to not be able to log into network admin of multisite
  52. How to add Custom Blog Options to new blog setup form?
  53. How can I trust switch_to_blog()?
  54. Remove the blog slug from WordPress Multisite root node
  55. How to run an activation function when plugin is network activated on multisite?
  56. Is there any central control/access panel for several WordPress sites?
  57. Changing subdir multisite install to subdir core directory structure
  58. get_current_blog_id returns 1 in multisite setting
  59. Odd Script File Trying to be Loaded
  60. Basically the opposite MultiSite URL question that most people ask
  61. Multisite wp-admin redirect loop
  62. setup Multi Multi-site with one installation?
  63. Multiple sites (separate domains) running from one WordPress site
  64. How do I use different domain for subdomains in WP Multisite?
  65. Limit multisite/network site names to a property of the user
  66. How to set Active plugins as the default screen?
  67. Global searchin multisite but only with one subsite
  68. Subdirectory multisite installation with several domain names?
  69. create_users capabilities on a role on multisite
  70. How to change user starting role in WordPress MultiSite?
  71. get_post_type_object() does not work with switch_to_blog()
  72. Multi-Site Subdomain: Show master site under subdomain if no sub site exists
  73. Register existing user on another site in a multisite network?
  74. Can i import a site (plugins, database, images) etc. Into an existing wordpress multisite?
  75. Create Custom Multisite User Role to Reduce Capabilities
  76. Importing XML didn’t finish, site is now inaccessible
  77. WordPress multisite – Bitnami
  78. Multisite Sub domains not working
  79. How Can I Change The Name Of My Subdomain in WordPress Multisite
  80. Display site description instead of site name
  81. WordPress multi-site: How do I create the home page, the root URL?
  82. Multiple Websites that share some content types and not others
  83. Is it possible to query posts with tax queries after multisite switch_to_blog() function?
  84. In Multisite the users profile picture keeps disappearing for “the other site”
  85. importing data into wordpress db
  86. Working with Reverse Proxies and Multisite Installation
  87. Should I use multisite?
  88. How to clone homepage for multi region site?
  89. In Multisite – main site blog post should be display in minisite or subsite
  90. 2 wordpress, 2 different themes, some pages with the same content
  91. Multisite Dashboard not working
  92. Multisite (with nested paths) wp-admin redirect loop
  93. change database to multisite in localhost
  94. Woocommerce Membership synchronised accross multisite
  95. switch_to_blog($blog_id); still writing to main blog
  96. How to automate adduser (on linux) when add new user site in multisite
  97. Multisite Tables the same as Single Install?
  98. Is there a built in method to protect pages?
  99. Change identical page for every site in multisite
  100. WordPress Multisite Medial Library not working for .online domain
Categories multisite Tags login, multisite
How to convert query sql to shortcode in wordpress?
How can I add 2 buttons with shortcode

Recommended Hostings

Cloudways: Realize Your Website's Potential With Flexible & Affordable Hosting. 24/7/365 Support, Managed Security, Automated Backups, and 24/7 Real-time Monitoring.

FastComet: Fast SSD Hosting, Free Migration, Hack-Free Security, 24/7 Super Fast Support, 45 Day Money Back Guarantee.

Recent Added Topics

  • Bug in translation system: load_theme_textdomain() returns true, files are available and accessible but the language defaults to english
  • Custom Elementor controls not appearing in the widget Advanced tab using injection hooks
  • Get the name of the template/*html file used
  • Trying to Add Paging to Single Post Page
  • Sharing media files between live and staging servers
  • How to display the description of a custom post type in the dashboard?
  • Critical error on image display
  • Copying WP data and files into new install?
  • How to determine the DirectAdmin WordPress backup date?
  • How to get list of ALL tables in the database?
© 2026 Read For Learn
  • Database
    • Oracle
    • SQL
  • algorithm
  • asp.net
  • assembly
  • binary
  • c#
  • Git
  • hex
  • HTML
  • iOS
  • language angnostic
  • math
  • matlab
  • Tips & Trick
  • Tools
  • windows
  • C
  • C++
  • Java
  • javascript
  • Python
  • R
  • Java Script
  • jQuery
  • PHP
  • WordPress