Questions tagged [ngx-http-rewrite-module]

nginx rewrite module is a default module that implements if-statements, rewrite directives and allows URL manipulation in nginx with the help of PCRE regular expressions (it's what mod_rewrite is to Apache)

The ngx_http_rewrite_module module of is used to change request URI using PCRE , return redirects, and conditionally select configurations.

(It is similar in its concept to of .)

http://nginx.org/docs/http/ngx_http_rewrite_module.html

http://ngx.su/src/http/modules/ngx_http_rewrite_module.c

16 questions
-1
votes
1 answer

nginx rewrite query string $args to .html URL (w/o backend support)

I have the following nginx rewrite rule. location /search { rewrite ^/search/([^/]*)\.html$ /search/?search=$1 break; try_files $uri $uri/ =404; } I want this to be like…
1
2