1 | initial version |
To redirect a domain for all of its URLs, you can use a 301 redirect. This will ensure that all traffic to the old domain is redirected to the new domain. Here's how to do it:
on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?approvedsite\.com [NC]
RewriteRule \.(gif|jpe?g|png)$ - [NC,F,L]
This code will allow hotlinking only for the approved website, and all other requests will be denied with a 403 Forbidden error.
With these steps, you can redirect your domain for all of its URLs while also allowing hotlinking exclusively for approved websites.