K
K
Kuti2016-07-03 13:30:54
Search Engine Optimization
Kuti, 2016-07-03 13:30:54

Best way to redirect from home page?

What is the best way to redirect users from the main page of the site? For example: a user enters the main page and is redirected to /menu/pizzas . What redirect codes to use (301, 302...)? Or is there a prettier method? JS do not offer

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry, 2016-07-03
@Kuti

one of them is a temporary redirect, the other is a permanent one.
For search engines, there is almost no difference.
if you use a permanent redirect, there is a small but significant nuance.
this redirect can be cached permanently on the client side in the browser and will be redirected from that link constantly.
if you later change your mind and need to redirect to another location, you will be in for a nasty surprise.

S
Sergey, 2016-07-03
@sergeyvidioreg

And can you clarify why you need to transfer from the main to the internal? Maybe I don't fully understand the question.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question