A
A
Alexander Saneev2016-02-08 00:19:44
PHP
Alexander Saneev, 2016-02-08 00:19:44

Does header location affect page indexing?

Hello.
I don’t even remember where I found out from ..
In general, I read somewhere that if a script has a lot (or one) of internal redirects (like header("Location: redirect")) on the "path" to display the final page, then this negatively affects indexing this final page by search engines because search bots don’t like something there.
Is there such a thing or is it still possible to "sip" a little?
The task is this - on the page "/page" in the form, the type and category are selected. Then, after processing this data, the corresponding URL string is formed and the header("Location: /type/category") redirect occurs. Then the url is processed and the content corresponding to the type and category is displayed on the page.
So, based on what is in the memory of my head)) this final page - "/type/category", should be badly indexed by PS bots. But I don't know if that's really the case.
I thought about replacing the url with JS so that the url would be formed immediately and after the "sending" the corresponding content would be immediately displayed.
So that after choosing the type, the url "/page" changes to "/type" but the reload does not occur, and after the category is selected, the url is "/type/category", the reload occurs, is processed and the necessary content is immediately displayed, without a redirect. (well, or something like that)
But it’s somehow “dumb” to me .. How phones with smartphones, browsers, etc., etc. will react to this. in our time?
Any advice on how best to organize it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin, 2016-02-08
@armenka29

Yes emae) what is it in style, you know in the recipes they write about a lot of sugar and salt, how it will affect the taste, whether it will twist my face a lot ....))
I think no one will die from 1 301 redirect. why do so many of them?
Usually always 1 and done.
This is a common practice, the PS treat this in no way - neutrally.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question