T
T
T3R3AND2020-10-21 19:11:00
Nginx
T3R3AND, 2020-10-21 19:11:00

Correct redirect?

Hello! Interested in the following, how to do when empty ?id=
Gives me when /compiler/3

location /compiler {
    rewrite ^/compiler/([0-9]+) /compiler.php?id=$1? last;
  }

And let's say I need when it's empty, it opens a 404 error

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question