There was a question: How to make the URL of the page correctly, so that the search engines would properly index it and highlight the right words (city)? It is necessary to make up of two cities and their codes, for example:

  1. Moscow - MOW
  2. Samara - KUF

I stopped at this option: domainname.ru/Moscow (MOW)_Samara (KUF).html

But I'm not sure that this is the best option. I use brackets. Can it be better to use a colon or a vertical line to separate the name of the city and its code? The underscore is used as a separator between cities, and the hyphen is present in the names of many cities and you do not want to use it again in the address (it will be more difficult to sort the address).

Tell me, how else can you put it all together.

  • For brackets or a vertical line in the URL you need to beat. This is still allowed in the parameters area (after the question mark?). For the colon beat very much)) Yes, and Russian letters are not too desirable. But in order for search engines to highlight something this will not be enough - SilverIce
  • one
    @grisha do not suffer marasmus, use generally accepted standards! - Palmervan
  • Thanks for the comments, but could you tell me what can be done about it? How can I put it all in the URL ... so it was correct. Russian bykvy in the URL on the site for a long time, and if everything is done for transliteration, then more than 10k pages will fall under the re-index. So far, I haven’t used brackets or anything else except dashes and pokerings, but now we need to separate RCD-cities from its name (dashes and underscores are already taken ... nakto something different) ... how is this better done? - grisha

1 answer 1

So use underscores.
And in the code break the line by underlining, 4 parts will be released:
city1, city-code1, city2, city-code2
No complications.