Solved

Drupal Clean URL but need download link

Posted on 2010-11-18
3
325 Views
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?

Thanks!
0
Comment
Question by:erzoolander
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 13

Accepted Solution

by:
dsmile earned 500 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)
0
 
LVL 2

Author Closing Comment

by:erzoolander
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.
0
 

Expert Comment

by:vadbars
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

0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Only allow one site in Internet Explorer on XenApp. 9 79
change password links 7 100
Tracing Username by IP Address or hostnames 3 58
Morphing two faces into one... 3 32
PaperPort has a feature called the "Send To Bar". It provides a convenient, drag-and-drop interface for using other installed software, such as Microsoft Office. However, this article shows that the latest Office 2016 apps (installed with an Office …
This script checks a path to see if a folder exists. If the folder does exist you will get output "The folder has previously been created. No action taken" If not it will create the folder. Then adds one user modify permission to the folder. It …
In this video, we show how to convert an image-only PDF file into a PDF Searchable Image file, that is, a file with both the image (typically from scanning) and text, which is created in an automated fashion with Optical Character Recognition (OCR) …
Sometimes we receive PDF files that are in the wrong orientation. They may be sideways or even upside down. This most commonly happens with scanned or faxed documents. It is possible to rotate the view of these PDFs with the free Adobe Reader produc…

726 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