M
M
magary42018-03-02 18:57:39
Apache HTTP Server
magary4, 2018-03-02 18:57:39

Redirect via htaccess on cookies?

if the user opens example.com
, you need to check if he has cookies and if so, then redirect example.com/cookie_value
but do nothing, there is something like example.com/post/123 after the slash

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Viktor Taran, 2018-03-06
@shambler81

RewriteCond %{REQUEST_URI} !post/123$
RewriteRule ^/cookie_value$ /тут_что_хотели/? [L,R=301]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question