There are a lot of domains of level 3, how can you redirect from these domains, despite the fact that they do not have their own hosting. It is necessary to make a redirect from them to the main domain, it turns out without a .htacess file, since there is no hosting for 3rd level domains
1 answer
You can register them in the CNAME field for the main domain in the admin panel.
If you have access to configs: NGinx:
server_name sitename.com www.sitename.com;
Apache
ServerName sitename.com ServerAlias www.sitename.com
- And if I need to redirect to a specific address on the server? For example: site.com/project1 - maksvolf
- it depends on the configuration of the platform - in particular on where you have access. - Alexander Halimon
|