There is a site included cnc works fine. I began to notice that links like site.ru/index.php?id=114&Itemid=173&option=com_content&view=article are issued or you can get the material by simply specifying site.ru/123 where 123 is the id of the material. Who faced and how to fix it?

UPD:

Part of the problem is fixed by finding the following solution:

nginx

set $arg_set "${arg_option}___${arg_view}___${arg_id}"; if ($arg_set ~* "^(((\w|-)+?)___){2}((\w|-)+?)$") { return 404; } 

It remains to solve the problem by specifying site.ru/114 where 114 is the id of the article.

  • one
    Telepaths are not here, you need to look at how SEF was configured. And whether it is configured at all. if set correctly, all URLs go through a transformation. Perhaps your links are outdated links that were before the SEF process. Describe in more detail where you get the links of the "old" type. If URL redirection is not working, your hosting may not be able to activate the mod_rewrite module on the Apache server. Contact the host to be able to use these functions. - alexoander
  • one
    Put the canonical url on your pages support.google.com/webmasters/answer/139066?hl=en - Visman
  • @alexoander I have a bunch on vps nginx + php-fpm. Before moving to vps, it was the same, I can not understand where I once messed up. SEF standard, Enable SEF (CNC) - on, URL redirection - on, Add suffix to URL - on. - Vladimir

1 answer 1

I solved the problem by installing the JL No Dubles plugin.