How to remove www in the links Modx?

Good day, I had to support was not created by me site on modx long time working via www, later, the administration decided to abandon the www. I set up redirect indicated the primary mirror and so on, but all the links stayed on the site with the www, tell me how to fix this in Modx?, maybe there is a setting that specifies the address of the site? Thank you.
July 12th 19 at 17:18
1 answer
July 12th 19 at 17:20
Hello, if you are doing the right thing relative links in MODX, and it is through the id of the resource (href="[[~5]]" for the revo or href="[~5~]" for evo), you will see what you have written in <base href> in must be
<base href="[[++site_url]]"> for revo and <base href="[(site_url)]"> for evo
and if you did the full links from domain, then through the base, replace the domain with www to without www.
And don't forget to clear the cache in the admin panel.
Really base href was written with the www, thanks a lot really helped. - Elmo.Marquar commented on July 12th 19 at 17:23

Find more questions by tags MODXWeb Development