I build a new permalink structure on my website. After adding some nginx rewrite rules, there is a redirect loop to /vlogger/info/info/info/info/...
Old permalink:
/vlogger/user-name
New permalink:
/vlogger/info/user-name
current nginx rule:
location ~ /vlogger/(.*)$ {
rewrite ^/vlogger/info/$1 permanent;
}
How can I check if the second directory ( /vlogger/"info/" ) alway set and redirect successful without a loop?
(*Username contains only: a-z0-9 and - (minus))