Timeline for Redirect all users, except network administrators, from the main site to a subsite
Current License: CC BY-SA 3.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 8, 2014 at 6:23 | vote | accept | Yuri | ||
Nov 8, 2014 at 6:20 | review | Suggested edits | |||
Nov 8, 2014 at 10:41 | |||||
Oct 15, 2014 at 4:30 | comment | added | Seamus Leahy |
@lurie A redirect head tag will be slower. This sends a short HTTP header to redirect instead of a a full HTTP header along with the page content. You are getting "Call to undefined function..." because your redirect code is before the is_main_site() function is included via /wp-blog-header.php file. If you place your code afterwards, you'll still get error as at that point the page has already been sent to the user.
|
|
Oct 14, 2014 at 20:08 | vote | accept | Yuri | ||
Oct 16, 2014 at 15:14 | |||||
Oct 14, 2014 at 14:30 | history | answered | Seamus Leahy | CC BY-SA 3.0 |