Welcome! Log In Create A New Profile

Advanced

Re: Redirect Question for Directory Structure Change

J.R.
September 10, 2020 10:54AM
You really should use a custom named capture group as the default "$1"
(and $2, $3, $4...) can cause erroneous output if there is any other
capturing going on in your configuration files...

i.e.

location ~ ^/e/(?<x1>.*) {
return 301 /$x1$is_args$args;
}

As someone else mentioned, be sure to disable caching when doing
testing... In Chrome / Firefox, you can press 'F12' for the developer
tools, then choose the 'network' tab and check the box 'disable
cache'. When you are done testing, just press F12 again...
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Redirect Question for Directory Structure Change

figshta September 09, 2020 11:11AM

RE: Redirect Question for Directory Structure Change

Reinis Rozitis September 09, 2020 12:04PM

Re: RE: Redirect Question for Directory Structure Change

figshta September 10, 2020 12:25AM

Re: RE: Redirect Question for Directory Structure Change

figshta September 10, 2020 01:45AM

RE: RE: Redirect Question for Directory Structure Change

Reinis Rozitis September 10, 2020 04:18AM

Re: RE: RE: Redirect Question for Directory Structure Change

figshta September 10, 2020 06:34AM

RE: RE: RE: Redirect Question for Directory Structure Change

Reinis Rozitis September 10, 2020 07:18AM

Re: RE: RE: RE: Redirect Question for Directory Structure Change

figshta September 10, 2020 09:45AM

Re: RE: RE: RE: Redirect Question for Directory Structure Change

figshta September 10, 2020 11:18AM

Re: Redirect Question for Directory Structure Change

J.R. September 10, 2020 10:54AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 147
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