Forum Moderators: phranque
Hmmm... Strange. This may have to do with the version you are using, and with its server variable format.
Oh well, here's a patch:
RewriteCond %{HTTP_REFERER} ^(.*)$
RewriteRule ^(.*)\.ext$ r.php?a=$1.ext&b=%1
HTH,
Jim
I can't answer your question about right-click. It has nothing to do with mod_rewrite, though. mod_rewrite sees only resource requests, it doesn't know or care how the request was invoked. It must be some other issue.
multiple filetypes:
RewriteCond %{HTTP_REFERER} ^(.*)$
RewriteRule ^(.*)\.(wmv¦mov¦mpg)$ /r.php?a=$1.$2&b=%1 [L]
Ref: Introduction to mod_rewrite [webmasterworld.com]
Jim
RewriteEngine on
RewriteCond %{HTTP_REFERER} ^(.*)$
RewriteRule ^(.*)\.(wmv¦mov¦mpg)$ r.php?a=$1.$2&b=%1 [L]
when accessing test.mpg, it loads test.mpg and not r.php?a=test.mpg&b=
on the other hand
RewriteEngine on
RewriteRule ^(.*)\.mpg$ r.php?a=$1.mpg [L]
works fine