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
Post a Comment