Hi there @polkovnika2
Remove the edit you did in global_config (so restore it to how it was)
Open .htaccess (if its not there create it) just remember the dot first.
Fill it with this code.
<IfModule mod_rewrite.c>
Options -MultiViews
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule \.(js|css|jpeg|jpg|gif|png|ico|map)(\?|$) /404error.php [L,NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
Next step. This depends on your host, but you need to make sure you have a CNAME that has www into it, without that then it wont work.
After that try add www.yoururl.com in the config_global.php
Please note that if you are unsure about the Cname and want help i would need to know what host you have and if you are using Cpanel or Plesk