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 -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -