In many online stores I notice that the url of the product page is the Latin transliteration of the name of this product. And it is unlikely that developers create pages for each of the tens of thousands of products. I saw solutions with # after urla, with get tails, but this is all wrong. Can you please tell Novik how this is implemented? What is the difference from the standard page creation method? And is it possible to promote such "generated" pages in Seo?

  • Something I did not understand the question. They process the url in some php script and that's it - andreymal

2 answers 2

Interpretation of the addresses of the pages, as mentioned above, is carried out by the server and the site software. Each server implementation has its own module that implements this functionality.

On the IIS server, this functionality is implemented by the free URLRewriter module. At the same time, for the Apache server there is a mod_rewrite module, which is configured via the .htaccess file.

For example, specifying the following code, the webmaster will be able to get all the parameters passed to PHP via the $ _SERVER ['REQUEST_URI'] array, and the entry point for any request will be index.php [26].

RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php [L,QSA] 

Semantic URL

  • Thanks, helped! The truth had to tinker for a long time) - Mirei Arov

In the base of the table of goods, each product, for example, may have a field - alias or url. Then, in the backend, the developer writes an action controller, where the parameter is taken - this is the url or alias and a query is made to the database - if the goods with this label are located, then the page is pulled out and rendered.

All this is done easily on php-frameworks, the most popular is YII2, Laravel. There you can write your own routing rules, instead of the product id, they substitute this very alias and everything is ok. And of course, such pages are easy to promote in search engines, because the server returns the usual html.

  • Thanks for the answer. In general, this is how it turned out to take a sketched url and pull categories out of it, but without frameworks. Mod_rewrite Helped - Mirei Arov
  • Can you tell me if there are any special requirements and nuances of promoting such 'fake' pages in Seo? - Mireille Aurov