C
C
Curie2018-08-22 12:09:15
htaccess
Curie, 2018-08-22 12:09:15

How to create a redirect from any subdomain to the main domain?

There is a script, site pages are generated as pagename.site.ru
Now the site will work in a new way, without subdomains. Subdomains will be disabled. In order not to lose visitors, I want to make a redirect to the main page from any subdomain, is it possible using htaccess?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question