A
A
Alexander2016-02-28 23:22:12
Apache HTTP Server
Alexander, 2016-02-28 23:22:12

CNC and changing the structure of urls. So right from the point of view of seo?

Hello Toaster!
A long time ago I screwed the CNC to the links:
To make it - site.ru/item.php?country=ru&city=moscow&id=123 It
looked beautiful - site.ru/ru/moscow/123/

RewriteRule ^([a-z]{2})/([a-z-]+)/([0-9]+)/?$ 	 item.php?country=$1&city=$2&id=$3 [QSA]

And now you need to change the format to site.ru/tour/123/
In order for the search engines to correctly re-index and so that the incoming links do not break, I did this:
RewriteRule ^([a-z]{2})/([a-z-]+)/([0-9]+)/?$ 	/tour/$3/ [QSA,R=301]
RewriteRule ^tour/([0-9]+)/?$   	        item.php?id=$1 [QSA]

But now I doubt whether this is the right decision? It turns out two consecutive redirects. This is not good?
Please advise if this is a good solution?
Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladislav Yanovsky, 2016-02-28
@kopcap_va

And why do you now from the original to irrelevant? Make from both old structures to the new one.
I.e:
ps Two redirects are worse than one.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question