Title: Conditional redirect with http header
Last modified: August 19, 2016

---

# Conditional redirect with http header

 *  [roar](https://wordpress.org/support/users/roarskullestadcom/)
 * (@roarskullestadcom)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/conditional-redirect-with-http-header/)
 * Is there a plugin that would allow me achieve an effect similar to this?:
 *     ```
       if(!isset($_COOKIE['mycookie'])) {
           header('Location: http://www.othersite.com');
       }
       ```
   
 * I am using the suffusion theme and according to the author, this needs to be 
   solved with a plugin.

The topic ‘Conditional redirect with http header’ is closed to new replies.

## Tags

 * [HTTP](https://wordpress.org/support/topic-tag/http/)
 * [redirect](https://wordpress.org/support/topic-tag/redirect/)

 * 0 replies
 * 1 participant
 * Last reply from: [roar](https://wordpress.org/support/users/roarskullestadcom/)
 * Last activity: [15 years, 3 months ago](https://wordpress.org/support/topic/conditional-redirect-with-http-header/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
