In Progress

[url removed, login to view] Problem

I am working on an .htaccess file for a folder containing links to files of several types.

I need the .htaccess file to:

1. Redirect all PDF/pdf files to a downloader php script I wrote called

RewriteEngine On

RewriteBase /

RewriteCond %{REQUEST_URI} -f

RewriteRule ^(.+)\.pdf$ /[url removed, login to view]$1 [L,NC,QSA]

2. Force all other files types to be application/octet-stream

3. Deny access to any file with .PHP, .CGI, .PL, .HTML, .HTM in the file name

Including files like: [url removed, login to view]

I will share my .htaccess file with the winning bidder so show you what I am attempting to do.

For some reason I cannot get all 3 to work in combination.

Thank you!

Skills: Apache, Linux, System Admin

See more: problem name, htaccess, htaccess apache, htaccess problem, apache htaccess working, force gif, htaccess cgi, apache file share, php rewriteengine, attempting, htaccess rewriteengine, redirect htaccess problem, php htaccess rewriteengine, rewriteengine, php htaccess, apache htaccess redirect, linux file share, rewritebase htaccess file, force file, linux admin apache, script file share, application downloader, downloader php, rewriterule htaccess, apache problem

About the Employer:
( 100 reviews ) Calgary, Canada

Project ID: #1288954

Awarded to:

toinnisfree

quick pro help. escrow required.

$50 CAD in 1 day
(25 Reviews)
5.1

1 freelancer is bidding on average $50 for this job

dracco

kindly check your pmb please

$50 CAD in 1 day
(27 Reviews)
4.3