Title: redirect
Last modified: August 25, 2020

---

# redirect

 *  [nkwebdesign](https://wordpress.org/support/users/nkwebdesign/)
 * (@nkwebdesign)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/redirect-143/)
 * is it possible to redirect to another domain/redirect.html while working on WordPress
   and able to see the WordPress website or do I need a WordPress plugin for that?

Viewing 1 replies (of 1 total)

 *  [Vlad](https://wordpress.org/support/users/vladytimy/)
 * (@vladytimy)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/redirect-143/#post-13311624)
 * Hi!
    There are some plugins that can do that for you: redirect visitors that 
   are not logged in to a certain page, but you can do that yourself, by adding 
   a few lines of code in header.php file (using FTP or Theme Editor):
 *     ```
       if (!is_user_logged_in()) {
   
       wp_redirect('https://yoursite.com/yourpage');
   
       exit();
   
       }
       ```
   
 * Let me know how this goes.
    Good luck! Vlad
    -  This reply was modified 6 years, 1 month ago by [Vlad](https://wordpress.org/support/users/vladytimy/).

Viewing 1 replies (of 1 total)

 The topic ‘redirect’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Vlad](https://wordpress.org/support/users/vladytimy/)
 * Last activity: [6 years, 1 month ago](https://wordpress.org/support/topic/redirect-143/#post-13311624)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
