M
M
Monty2017-02-01 23:14:37
Computer networks
Monty, 2017-02-01 23:14:37

HTTP redirect, which is faster?

Good afternoon.
I need to do an http redirect. The user gets to the page with grt-parameters. We read the parameters. We pass the parameters further into the link. And we make a 302 redirect to this link. I will do it in PHP.
Question. And on what it will work faster? Apache directives, htaccess something else?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
Pavel, 2017-02-01
@PavelMonro

First of all, Apache or Nginx receives a request on the server, respectively, they are faster, but in fact you will not notice the difference if you do the same in Php or through htaccess

V
Vasily Nazarov, 2017-02-02
@vnaz

header("Location: <where to go>");

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question