[SOLVED] [wpmlonline] link problem

edited December 2012 in Newsletter plugin
I use newsletter plugin on a multisite wordpress platform. 6 public blogs and 1 private.

In my private blog, only subscribers/users can view content : pages, posts... They can also subscribe to newsletters. The problem is that any visitor can access the online version of each newsletter as its content is supposed to be reserved for registered members only. I use the [wpmlonline] in the template and the online link is : /?wpmlmethod=newsletter&id=919, if you change the numbers you can access to all the  newsletters... Against by the archive page is not accessible, it requires indeed a identifiaction and password ... A solution to protect the link for this private blog ?

Htaccess rewrite rule ? But i dont know how !!!

Comments

  • 4 Comments sorted by
  • Vote Up0Vote Down
    edited December 2012
    The solution with the htaccess, redirecting the wpmlmethod to the newsletter archives page of the private blog to force visitors to log in, the other public blog links works well, visitors can access to the online version of the newsletter (wpmlonline).

    #Redirect wpml requests  
    RewriteCond %{QUERY_STRING} ^wpmlmethod=newsletter&id=([0-9]*)$
    RewriteRule ^privateblog/$ http://www.website.com/privateblog/newsletterarchives? [R=301,L]
      
    RewriteCond %{QUERY_STRING} ^wpmlmethod=newsletter&id=([0-9]*)&mailinglist_id=([0-9]*)$
    RewriteRule ^privateblog/$ http://www.website.com/privateblog/newsletterarchives? [R=301,L]
      
    RewriteCond %{QUERY_STRING} ^wpmlmethod=newsletter&id=([0-9]*)&mailinglist_id=([0-9]*)&subscriber_id=([0-9]*)$
    RewriteRule ^privateblog/$ http://www.website.com/privateblog/newsletterarchives? [R=301,L]

    RewriteCond %{QUERY_STRING} ^wpmlmethod=newsletter&id=([0-9]*)&mailinglist_id=([0-9]*)&subscriber_id=([0-9]*)$
    RewriteRule ^privateblog/$ http://www.website.com/? [R=301,L]

    RewriteCond %{QUERY_STRING} ^wpmlmethod=newsletter&id=([0-9]*)&mailinglist_id=([0-9]*)&subscriber_id=([0-9]*)&authkey=([a-z0-9]*)$
    RewriteRule ^privateblog/$ http://www.website.com/? [R=301,L]
  • Vote Up0Vote Down
    Thank you for your message and your follow-up.

    Thank you for posting your workaround as well.
    I believe we sent you a new build of the plugin with improvements to this as well.

    Let us know if you need further assistance with it please.
  • Vote Up0Vote Down
    The new version works perfectly. Thank you for your responsiveness and professionalism.
  • Vote Up0Vote Down
    Thank you for your response, Vivacitas.

    It is our pleasure, I'm glad it helped you.
    I'll mark this thread as solved here in our forums.

    Let us know if you need any further assistance at all!
Sign In or Register to comment.