Drupal Clean URL but need download link

Posted on 2010-11-18
Medium Priority
Last Modified: 2012-05-10
Hey -

Quick, and possibly boneheaded question.

I've got a drupal site - with Clean URLs enabled.  However - I need to provide links for our users to be able to view/download PDFs located on the same server.

I think you can see what I'm getting at here.

If I go to "http://www.mydomain.com/pdfs/mysample.pdf" - the URL is taken over by the mod-rewrite/cleanURL function.  So - I can't place links to it within the site.

Is there something I'm missing?  How would you accomplish this?

Question by:erzoolander
LVL 13

Accepted Solution

dsmile earned 2000 total points
ID: 34167016
Are you sure it's clean URL that causes this?
Try disable clean URL then access that file again.

I think only non-existence path is taken care of by clean URL (as I see in my drupal 6.2 deployment)

Author Closing Comment

ID: 34167254
You're right.  It was a miscommunication from our art department.  I was under the impression they had already put up the file - when in fact they hadn't.

Expert Comment

ID: 34167889
You need to create file named .htaccess, which contains roughly:
SetHandler Drupal_Security_Do_Not_Remove_See_SA_2006_006
Options None
Options +FollowSymLinks

And put it in the directory http://www.mydomain.com/pdfs.
Example: file in directory /sites/default/files


Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

This article will shed light on the latest trends when it comes to your resume building needs. For far too long, the traditional CV format has monopolized the recruitment market.
Assume you have an outside contractor who comes in seasonally or once a week to do some work in your office, but you only want to give him access to the programs and files he needs and keep all other documents and programs private. Can you do this o…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
Suggested Courses

621 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question