I'm trying to stop the image hotlinking from my dokuwiki installation. But somehow i'm not getting it right. I'm using pretty urls configured in the .htaccess file.
As hotlink code i'm using
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?greenbird.info(/)?.*$ [NC]
RewriteCond %{HTTP_REFERER} !google\. [NC]
RewriteCond %{HTTP_REFERER} !search\?q=cache [NC]
RewriteRule ^_media/(.*)\.(gif|jpg|jpeg|bmp|png)?(\?cache=cache) _media/hotlink_theft.gif [R,NC]
but somehow it is interfering with the pretty urls of dokuwiki specified here
RewriteRule ^_media/(.*) lib/exe/fetch.php?media=$1 [QSA,L]
RewriteRule ^_detail/(.*) lib/exe/detail.php?media=$1 [QSA,L]
RewriteRule ^_export/([^/]+)/(.*) doku.php?do=export_$1&id=$2 [QSA,L]
RewriteRule ^\.$ doku.php [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) doku.php?id=$1 [QSA,L]
RewriteRule ^index.php$ doku.php
As i have hardly any experience with .htaccess I don't see the error. I hope someone can help me.