Welcome! Log In Create A New Profile

Advanced

rewrite rule of url w/args to url?

Robert La Ferla
December 14, 2010 10:42AM
I want to rewrite:

/somedirectory/file.zip?arg1=testing/test&opt=yes

to

/somedirectory/file.zip/testing/test


i.e. it takes the base path and appends $arg1 to it and strips out
other args.

What's the best way to do this in nginx?

--
- --
Robert La Ferla
VP Engineering
OMS SafeHarbor

This message (and any attachments) contains confidential information and is protected by law. If you are not the intended recipient, you should delete this message and are hereby notified that any disclosure, copying, distribution, or the taking of any action based on this message, is strictly prohibited.


_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

rewrite rule of url w/args to url?

Robert La Ferla December 14, 2010 10:42AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 151
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready