Thread
:
Anyone know how to make htaccess ALLOW a subdomain?
View Single Post
06-19-2004, 08:38 PM
grannytgp
Confirmed User
Join Date: Aug 2002
Posts: 269
If you're talking about allowing subdomains as far as hotlinking protection goes, you can do this:
Quote:
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^
http://.*yourdomain.com
[NC]
RewriteRule .*\.(gif|GIF|jpg|JPG|mpg|MPG|Mpeg|mpeg|MPEG)$
http://www.yourdomain.com
[R,L]
This would allow *anything.yourdomain.com to be able to load the filetypes in the RewriteRule.
__________________
No sig = good sig
Last edited by grannytgp
; 06-19-2004 at
08:40 PM
..
grannytgp
View Public Profile
Visit grannytgp's homepage!
Find More Posts by grannytgp