Untitled

Redirect via NGINX
 avatar
unknown
plain_text
2 years ago
3.2 kB
34
Indexable


- Test2

    location /cadastro {
        rewrite ^/cadastro/?i=(.*)$ https://admin.dev.com.br/create/$1 redirect;
    }



- Test3

	rewrite ^/cadastro/?i=(.*)$ https://admin.dev.com.br/create/$1 redirect;



- Test4

    location ~ ^/cadastro/?(.*) {
        return 301 https://admin.dev.com.br/create/$1$is_args$args;
    }


- Test5

    location ~ ^/cadastro/?(.*) {
        return 301 https://admin.dev.com.br/create/$args;
    }


- Test6

    location ~ ^/cadastro/?i=(.*) {
        return 301 https://admin.dev.com.br/create/$args;
    }



- Test7

    location ~ ^/cadastro/?i=(.*) {
        return 301 https://admin.dev.com.br/create/$1;
    }



- Test8

    location / {
        try_files $uri $uri/ =404;
        rewrite ^/cadastro/?i=(.*) https://admin.dev.com.br/create/$1 permanent;
    }






- Test9

    location /cadastro/ {
        rewrite ^/cadastro/?i=(.*)$ https://admin.dev.com.br/create/$1 permanent;
    }



- Test10

    rewrite ^/cadastro/?i=(.*)$ https://admin.dev.com.br/create/$1 permanent;

    rewrite_log on;



- Test11

    rewrite ^/cadastro/?i=(.*)$ https://admin.dev.com.br/create/$1 last;
    rewrite_log on;




- Test12

    location /cadastro {
        rewrite ^/cadastro/?i=(.*)$ https://admin.dev.com.br/create/$1 break;
    }




- Test13

    location ^~ /cadastro {
        rewrite ^/cadastro/?(.*)$ $1 permanent;
    }



- Test14

    location ^~ /cadastro {
        rewrite ^/cadastro/?(.*)$ https://admin.dev.com.br/create/$1 permanent;
    }




- Test15

    location ^~ /cadastro {
        rewrite ^/cadastro/\?i=(.*)$ https://admin.dev.com.br/create/$1 permanent;
    }



- Test16

    location ^~ /cadastro {
        rewrite ^/cadastro/(\?)i=(.*)$ https://admin.dev.com.br/create/$1 permanent;
    }




- Test17

    location ^~ /cadastro {
        rewrite ^/cadastro/(.*)i=(.*)$ https://admin.dev.com.br/create/$1 permanent;
    }



- Test18

    location ^~ /cadastro {
        rewrite ^/cadastro/(\?)i=(.*)$ https://admin.dev.com.br/create/$2 permanent;
    }




- Test19

    location ^~ /cadastro {
        rewrite ^/cadastro/(.*)i=(.*)$ https://admin.dev.com.br/create/$2 permanent;
    }






- Test20

    location ^~ /cadastro {
        rewrite ^/cadastro/?i\=(.*)$ https://admin.dev.com.br/create/$1 permanent;
    }





- Test21

    location ^~ /cadastro {
        rewrite ^/cadastro/\?i\=(.*)$ https://admin.dev.com.br/create/$1 permanent;
    }





- Test22

    location ^~ /cadastro {
        rewrite ^\/cadastro\/?\?i\=(.+)$ https://admin.dev.com.br/create/$1 permanent;
    }




- Test23

    location ^~ /cadastro {
        rewrite ^\/cadastro\/?(?:\?i=)(.+)$ https://admin.dev.com.br/create/$1 permanent;
    }



- Test24

    location ~ ^/cadastro/?(?:\?i=)(.*) {
        return 301 https://admin.dev.com.br/create/$1;
    }




- Test25

    location ~ ^/cadastro/?\?i=(.*) {
        return 301 https://admin.dev.com.br/create/$1;
    }





- Test26

    location ~ ^/cadastro/?\?i\=(.*) {
        return 301 https://admin.dev.com.br/create/$1;
    }





- Test27

    location ~ ^/cadastro/?(.*) {
        if ($args ~* "^id=(\d+)") {
        set $idnovo $1;
        return 301 https://admin.dev.com.br/create/$idnovo;
        }
    }
Editor is loading...