Forum Moderators: phranque
RewriteCond %{HTTP_HOST} !^(arcade\.example\.com)?$
RewriteRule ^(.*)$ ttp://arcade.example.com/$1 [R=301,L]
RewriteCond %{HTTP_HOST} !^$
RewriteCond %{HTTP_HOST} !^(arcade\.example\.com)?$
RewriteRule ^(.*)$ ttp://arcade.example.com/$1 [R=301,L]
Or this (that one is from you)
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} !^(arcade\.example\.com)?$
RewriteRule ^(.*)$ ttp://arcade.namworld.com/$1 [R=301,L]
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://arcade.example.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://[a-z]+.facebook.com/.*$ [NC]
RewriteRule .*\.png$ ttp://www.example.com/leech.png [R,L]
RewriteRule .*\.png$ ttp://www.example.com/leech.png [R,L]
to your suggestion
RewriteRule \.(gif夸pg夸peg如ng存wf)$ ttp://www.example.com/leech.png [R,NC]
[edited by: engine at 4:59 pm (utc) on May 17, 2010]
[edit reason] Please use example.com [/edit]
RewriteCond %{HTTP_HOST} !^(arcade\.example\.com)?$ the question mark caters for blank hostname. .*\.png$ pattern requires many back off and retry attempts to match. Use \.png$ which is properly end-anchored. Start anchor not required. \.(gif夸pg夸peg如ng存wf)$ so you'll need to edit the pipe symbol to be the correct pipe symbol. [edited by: engine at 5:00 pm (utc) on May 17, 2010]
[edit reason] examplified [/edit]