Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2008
    Location
    USA, North East
    Posts
    99
    Plugin Contributions
    0

    Default External link to PDF

    I have two problems going on and it's causing me huge headaches and stress! Here they are, if any of you folks feel like contributing.

    First problem. On my 1.38 verion of the site, I had a link to a pdf which helped people choose the right product. They are viewing on Zen. They see a link on Zen, click it and it references a PDF stored in the cart/images folder. The pdf opens on the screen. After the upgrade, none of these links to PDF's work any longer. I get a screen that says forbidden and the PDF never opens for the customer. What changed? The PDF is in tact. The html on the site is the same as on the old site. The permissions on the folder are allowing it to be red. What changed?

    Second problem, USPS issue - sorted in another thread.

    Any takers?

    Thanks

  2. #2
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    2,513
    Plugin Contributions
    7

    Default Re: External link to PDF

    Quote Originally Posted by muah View Post
    ...........On my 1.38 verion of the site, I had a link to a pdf which helped people choose the right product. They are viewing on Zen. They see a link on Zen, click it and it references a PDF stored in the cart/images folder. The pdf opens on the screen. After the upgrade, none of these links to PDF's work any longer. I get a screen that says forbidden and the PDF never opens for the customer. What changed? The PDF is in tact. The html on the site is the same as on the old site. The permissions on the folder are allowing it to be red. What changed?....
    That's because your cart/images folder contains a .htaccess file with a script something like this:

    # deny *everything*
    <FilesMatch ".*">
    Order Allow,Deny
    Deny from all
    </FilesMatch>

    # but now allow just *certain* necessary files:
    <FilesMatch ".*\.(jpe?g|JPE?G|gif|GIF|png|PNG|swf|SWF)$" >
    Order Allow,Deny
    Allow from all
    </FilesMatch>
    As you can see the pdf extension is not shown and therefore access to pdf files in this folder is not allowed.

    You may want to ftp that pdf file into the cart/pub folder. That folder also contains a .htaccess file but it allows access to pdf files. Naturally you will need to change the path from cart/images to cart/pub

    Cheers / Frank
    Zen Cart with a Passion (Fair Dinkum Australian): iSO Network | frNT Online Dispensary
    Contribs: CSAR | German Language Pack | Local Delivery Only

  3. #3
    Join Date
    Dec 2008
    Location
    USA, North East
    Posts
    99
    Plugin Contributions
    0

    Default Re: External link to PDF

    No kidding...it works. Glad you know what you're doing!! :)
    Thanks...

 

 

Similar Threads

  1. Usps shipping module not working for international orders
    By muah in forum Addon Shipping Modules
    Replies: 3
    Last Post: 31 Jul 2013, 02:58 AM
  2. External Link Opens Internal - Not External - Page
    By missTish! in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 20 Apr 2011, 01:18 AM
  3. Send email with link to PDF (link expires)
    By mdawg0916 in forum General Questions
    Replies: 3
    Last Post: 4 Feb 2011, 01:15 PM
  4. PDF Link
    By Artwork in forum General Questions
    Replies: 4
    Last Post: 16 Sep 2010, 05:12 PM
  5. Replace the normal digital product download link with a different/external link
    By ballyc27 in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 1 Jul 2009, 05:31 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •