Title: Protected file redirection?
Last modified: November 18, 2016

---

# Protected file redirection?

 *  Resolved [jaltemoos](https://wordpress.org/support/users/jaltemoos/)
 * (@jaltemoos)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/protected-file-redirection/)
 * So I have a client that has membership2 installed. We got the initial plugin 
   working but the question came up about providing a links in a newsletter to go
   to one of the protected files and how the user will get a unable to access message.
   I can see where confusion would happen on the user side on what to do next. What
   my client would like to happen is that when someone hits one of those files that
   are protected and they are not logged in, redirect the page directly to the login
   page for the membership.
 * Is this possible currently? Or is this something that is capable in the Pro version?
   Currently my client is using the free edition on their WordPress site. Or could
   the unable to access page be edited to provide a link to the login page and then
   see the file afterwards?

Viewing 1 replies (of 1 total)

 *  Plugin Support [Imran – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support9/)
 * (@wpmudev-support9)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/protected-file-redirection/#post-8460321)
 * Hello [@jaltemoos](https://wordpress.org/support/users/jaltemoos/), I hope you
   are doing well today!
 * It is quite complex to create redirection one a none member lands on a protection
   page. It is possible to modify the Content Protection message. Go to Membership
   2 > Memberships, edit a membership, click on the “Protection Messages” tab.
 * Activate the “Define custom message” like it is shown bellow:
     Ans edit the 
   protected message content. You can place a link that will redirect to a home 
   page, or a login shortcode: `[ms-membership-login]`
 * You can also edit the default protection message for all Memberships from Membership
   2 > Settings > Protection Messages.
 * I hope this helps!
 * Cheers,
    Nastia

Viewing 1 replies (of 1 total)

The topic ‘Protected file redirection?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/membership_b8cdaa.svg)
 * [Membership 2](https://wordpress.org/plugins/membership/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/membership/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/membership/)
 * [Active Topics](https://wordpress.org/support/plugin/membership/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/membership/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/membership/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Imran – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support9/)
 * Last activity: [9 years, 6 months ago](https://wordpress.org/support/topic/protected-file-redirection/#post-8460321)
 * Status: resolved