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

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -