How to properly redirect old urls to new domain

If you change your domain, you can either use DNS or HTTP/Apache configuration to point the old content to the new location. It is recommended to use the DNS configuration, because it is more efficient for such tasks. However, In this short article, you’ll find an example of how to achieve that with simple .htaccess file rewrite. By doing that, we instruct the HTTP server (Apache, nginx, etc) to redirect the requests. If you want to redirect the whole url structure to the new domain, you can add this to your .htaccess file, in the root directory with the old domain: RewriteEngine… Read moreHow to properly redirect old urls to new domain