Redirect loop
-
Hey –
I am using this function, and I am receiving a redirect loop. Any ideas?
function country_geo_redirect() { $country = getenv('HTTP_GEOIP_REGION'); if ( ( $country == "MO" ) && ! is_user_logged_in() ) { wp_redirect( home_url( '/missouri-page' ) ), 301 ); exit; } } add_action('init', 'country_geo_redirect' );
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Redirect loop’ is closed to new replies.