Here's the thing. I just can't get it right. I need the rewrite condition match when cookie called SomeCookie hold value of requested filename. As of now {REQUEST_FILENAME} holds the filename and full directory of requested file ( for example /home/me/public_html/some_folder/master_mod_rewrite_in_one_hour.pdf and i only need the filename - master_mod_rewrite_in_one_hour.pdf)
How do i do that?
Code:
RewriteEngine On
RewriteCond %{HTTP_COOKIE} !SomeCookie={REQUEST_FILENAME} [NC]
RewriteRule .* http : / / far.far.away [L]
How do i do that?