A
A
Alexander Verbitsky2018-11-11 17:19:49
Yii
Alexander Verbitsky, 2018-11-11 17:19:49

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

2 answer(s)
X
xmoonlight, 2018-11-11
@xmoonlight

Routing in the web server settings or in the script dynamically changes according to the rules.

S
SagePtr, 2018-11-11
@SagePtr

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 question

Ask a Question

731 491 924 answers to any question