Rewrite all directory URLs with certain exceptions
Edho Arief
edho at myconan.net
Wed Nov 28 12:25:20 UTC 2012
On Wed, Nov 28, 2012 at 7:11 PM, Cristian Rusu <crirus at gmail.com> wrote:
> Excellent, it worked
>
> I have another urgent matter on a server live we just switched to
>
> I need that links like this:
> http://www.example.com/?v=JYH253CT
>
> to be rewritten as http://www.example.com/v.php?dl=JYH253CT
>
>
> Please help, server is down :(
>
http://nginx.org/en/docs/http/ngx_http_core_module.html#variables
Maybe something like this.
location = / {
if ($arg_v) {
rewrite ^ /v.php?dl=$arg_v;
}
}
More information about the nginx
mailing list