regex - NGINX rewriting subfolder when folder already rewritten? -


i have

/site/clients/anything 

rewriting

/site/clients/index.php?action=$1 

however want rewrite

/site/clients/verify/anything 

to

/site/clients/verify/index.php?vid=$1 

things i've tried

location / {     try_files $uri $uri/ @extensionless-php;     rewrite ^/site/clients/verify/(.+)$ /site/clients/verify/index.php?vid=$1;     rewrite ^/site/clients/^(?!login|sign-up|verify\/.*$).*$ /site/clients/index.php?action=$1;     index index.php index.html; }  location ~ /site/clients/verify/(.+)$ {     rewrite ^/site/clients/verify/(.+)$ /site/clients/verify/index.php?vid=$1; }  location ~ /site/clients/^(?!login|sign-up|verify\/.*$).*$ {     rewrite ^/site/clients/^(?!login|sign-up|verify\/.*$).*$ /site/clients/index.php?action=$ }  location ~ /site/clients/^((?!login|sign-up|verify).)*$ {    rewrite /site/clients/^((?!login|sign-up|verify).)*$ /site/clients/index.php?action=$1; } 

is possible? no progess has been made.


Comments

Popular posts from this blog

authentication - Mongodb revoke acccess to connect test database -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -

r - Update two sets of radiobuttons reactively - shiny -