Title: Redirection Not Ocurring
Last modified: March 20, 2021

---

# Redirection Not Ocurring

 *  Resolved [gammafx](https://wordpress.org/support/users/gammafx/)
 * (@gammafx)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/redirection-not-ocurring/)
 * In some use cases redirection is not occurring because there is no exit after
   header call. Please adjust cf-redirect.php around line 74 as follows:
 *     ```
       header( 'Location: ' . esc_url_raw($s['url']), true, sanitize_text_field($s['type']) );
       exit;
       ```
   
 * On a separate note, please consider using _wp\_redirect_ instead of _header_.
 * Cheers!

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [webinvaders](https://wordpress.org/support/users/webinvaders/)
 * (@webinvaders)
 * [5 years ago](https://wordpress.org/support/topic/redirection-not-ocurring/#post-14280276)
 * Thanks [@gammafx](https://wordpress.org/support/users/gammafx/) I’ve fixed the
   code and added few things so that plugin will work with some caching plugins.
 *  Plugin Author [webinvaders](https://wordpress.org/support/users/webinvaders/)
 * (@webinvaders)
 * [5 years ago](https://wordpress.org/support/topic/redirection-not-ocurring/#post-14295648)
 * New version (v1.3) is now available

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Redirection Not Ocurring’ is closed to new replies.

 * ![](https://ps.w.org/wp-cloudflare-geoip-redirect/assets/icon.svg?rev=2262519)
 * [WP Cloudflare GeoIP Redirect](https://wordpress.org/plugins/wp-cloudflare-geoip-redirect/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-cloudflare-geoip-redirect/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-cloudflare-geoip-redirect/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-cloudflare-geoip-redirect/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-cloudflare-geoip-redirect/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-cloudflare-geoip-redirect/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [webinvaders](https://wordpress.org/support/users/webinvaders/)
 * Last activity: [5 years ago](https://wordpress.org/support/topic/redirection-not-ocurring/#post-14295648)
 * Status: resolved