![]() |
.htacess & hotlink help
i got this
RewriteEngine on RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://(www\.)?mysite 1(/)?.*$ [NC] RewriteRule .*\.(gif|jpg|jpeg|bmp|)$ http://www.google.com [R,NC] but i want my other site mysite 2 allowed to hot link pics of mysite 1 what do i add to the code to allow mysite 2 to hot link?? |
|
|
RewriteCond %{HTTP_REFERER} !^http://(www\.)?mysite 1(/)?.*$ [NC]
Just copy that line over and put in the domain of the other sites you want to allow. Like So... RewriteEngine on RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://(www\.)?mysite 1(/)?.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://(www\.)?mysite 2(/)?.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://(www\.)?mysite 3(/)?.*$ [NC] RewriteRule .*\.(gif|jpg|jpeg|bmp|)$ http://www.google.com [R,NC] |
|
All times are GMT -7. The time now is 07:40 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123