I have a Ubuntu server that runs Apache w / Virtual Hosts. I run a website with a primary domain like "mydomain.com" and it is located at /var/www/mydomain.com.
Assuming I have multiple domain names (each with a different tld), the best way to make sure that they all point to "mydomain.com" (the main site).
In other words, is it better to create a .htaccess file in / var / www that has several 301 redirects for sites like "mydomain.net" and "mydomain.org" that point to "mydomain.com"?
source share