Answer the question
In order to leave comments, you need to log in
Why does a site with www and without www work differently?
Why does it
open the main page when you go to the site
https://www.my-site.ru , and when you go to: https://my-site.ru
it goes to https://www.my-site.ru//web /index.php
Why add this //web/index.php?
Answer the question
In order to leave comments, you need to log in
Routing in the web server settings or in the script dynamically changes according to the rules.
Because with www and without www, these are actually two different sites, just in 99% of cases they are prescribed as alias so that the www.(name) subdomain points to the main site (name). This is done by default in all hosting control panels, which is why many do not think about it.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question