I'm trying to use these mod_rewrite rules, they were written for apache 1.x
a long time ago, now under apache 2.0.48 they no longer work.
- Code: Select all
RewriteEngine On
RewriteRule ^/filemanager/filedownload/([^/]+)/(.*)$ ezfilemanager/files/$1 [T="application/oct-stream",L]
RewriteRule ^/filemanager/download/([^/]+)/(.*)$ ezfilemanager/files/$1 [T="application/oct-stream",L]
The url real url they are supposed to work with is ...
http://example.com/filemanager/download ... 03-101.pdf
The real name of the file is : 4005-003-101.pdf
The real location of the file would be
http://example.com/ezfilemanager/files/4005-003-101.pdf
Accessing the file directly downloads / loads the pdf file properly
without problems, yet I am trying to protect the files using mod_rewrite :|
Does anyone see why these rules might not properly forward / redirect to the real file without giving the directory's location away.
All I want to do is forward the user to the file transparently (they are all pdfs)
thank you,
//krackerjack
man's best friend - poor is cool