This is a basic .htaccess file which uses the rewrite engine of a webserver to redirect from an old Domain to the New domain keeping the original link intact.
This is used by MoBogaming.com to redirect all old links/files to the new domain Hails.cc
RewriteEngine On
RewriteCond %{HTTP_HOST} ^old-domain.tld$ [OR]
RewriteCond %{HTTP_HOST} ^www.old-domain.tld$
RewriteRule ^(.*)$ http://new-domain.tld/$1 [R=301,L]
- Copy the code from above
- Create a file named
.htaccess
on your web server and paste the code - Edit the Domains and TLD to match your use case
- Enjoy~
This requires ENABLING the Rewrite Engine for your web server.