Answer the question
In order to leave comments, you need to log in
Why is the regex not working correctly?
I need to condition that the sid cookie does not exist. I checked in the logs, when the cookie does not exist, then "-" is put instead of it.
So I wrote the following:
map $cookie_sid:$request_uri $redirect_uri {
"~^-:/[\d\w/]+$" "/";
}
Answer the question
In order to leave comments, you need to log in
map $cookie_sid:$request_uri $redirect_uri {
"~^:/[\d\w/]+$" "/";
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question