Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Re: Help with location match regex for encoded / unencoded url

$
0
0
I get a match with this regex here - https://regex101.com/r/3Lk2zr/3

but then using this

location ~ /.*[^\x00-\x7F]+.* {
return 444;
}

still gives me a 404 and not a 444

Likewise I get a match with this - https://regex101.com/r/80KWJ8/1
But then
location ~ /.*([^?]*)\%(.*)$ {
return 444;
}

Gives 404 and not 444 ???? I might just add my regex sucks

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>