wordpress - How to require more than one cookie htaccess -


I would like to know more than one cookie EG To reach example.com/protected you need both of cookie1 and cookie 2

Here's my current HTACCESS:

  rewriteigninauthenticationbutton / cookietext / restarted% {HTTP_COOKIE}! AuthCookie = OpenSystems [NC] REVERE TANK% {HTTP_COOKIE}! ^. * WordPress_logge_in * $ [NC] rewrite. * Http://example.com.com/wp-login.php [L]   

Why do I need both cookies?

Use

or flag:

 < Code> to re-write / rewrite / requestcut% {HTTP_COOKIE} to rewrite! AuthCookie = OpenSesame [NC, OR] RewriteCond% {HTTP_COOKIE}! ^. * WordPress_logge_in * $ [Nc] rewriter * Http://example.com.com/wp-login.php [L]   

If either AuthCookie or wordpress_logged_in is unavailable, then wp-login Redirect to .php If both cookies are present, then both the positions will not be completed and thus you will not be redirected

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -