title: .htaccess hotlink protection doesn't work
body: <p>can you correct &amp; inform me  please. My issue is my .htaccess hotlink protection doesn't work. I am on a shared server with .htaccess suppport. (SEO friendly linking works)<br /><br />My domain type is <code>http://www.mydomain.p.ht</code> OR <code>http://mydomain.p.ht</code>
  <br /><br />
  my 2 sources for my trials are:</p>
  
  <ol>
  <li><a href="http://www.htaccesstools.com/hotlink-protection/" rel="nofollow">http://www.htaccesstools.com/hotlink-protection/</a></li>
  <li>stackoverflow</li>
  </ol>
  
  <p>I did not forget to replace <code>mydomain</code> with my real domain</p>
  
  <h2>my .htaccess</h2>
  
  <pre><code>RewriteEngine On
  RewriteBase /
  
  # hotlink protection
  RewriteCond %{HTTP_REFERER} !^$
  RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?mydomain.p.ht [NC]
  RewriteRule \.(jpg|jpeg|png|gif|css)$ - [NC,F,L]
  
  # compress text, html, javascript, css, xml:
  AddOutputFilterByType DEFLATE text/plain
  AddOutputFilterByType DEFLATE text/html
  AddOutputFilterByType DEFLATE text/xml
  AddOutputFilterByType DEFLATE text/css
  AddOutputFilterByType DEFLATE application/xml
  AddOutputFilterByType DEFLATE application/xhtml+xml
  AddOutputFilterByType DEFLATE application/rss+xml
  AddOutputFilterByType DEFLATE application/javascript
  AddOutputFilterByType DEFLATE application/x-javascript
  
  # File caching is another famous approach in optimizing website loading time
  &lt;FilesMatch ".(flv|gif|jpg|jpeg|png|ico|swf|js|css|pdf)$"&gt;
  Header set Cache-Control "max-age=2592000"
  &lt;/FilesMatch&gt;
  
  #SEO friendly linking
  ...
  ...
  </code></pre>
  
  <h2>I also tried</h2>
  
  <h1>1</h1>
  
  <pre><code>RewriteCond %{HTTP_REFERER} !^$
  RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?mydomain.p.ht [NC]
  RewriteRule \.(flv)$ - [NC,F,L]
  </code></pre>
  
  <h1>2</h1>
  
  <pre><code>RewriteCond %{HTTP_REFERER} !^$
  RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?mydomain\.p\.ht/.*$ [NC]
  RewriteRule .*\.(jpg|jpeg|png|gif)$ - [F,NC,L]
  </code></pre>