Results 1 to 9 of 9
  1. #1
    Join Date
    Jun 2009
    Location
    Miami, Fl
    Posts
    138
    Plugin Contributions
    0

    Default After upgrade customers can't download .dmg files

    This time I added the exception into the .htaccess into the /download directory but it doesn't work.

    # but now allow just *certain* necessary files:
    <FilesMatch ".*\.(zip|ZIP|dmg|DMG|gzip|pdf|PDF|mp3|MP3|swf|SWF|wma|WMA)$">
    Order Allow,Deny

    What I need to modify now???

    Thanks!

  2. #2
    Join Date
    Dec 2009
    Location
    Amersfoort, The Netherlands
    Posts
    2,846
    Plugin Contributions
    25

    Default Re: After upgrade Zen Cart 1.5 customers can't download .dmg files

    You will also need to update the .htaccess file in the pub folder, because that is where the downloads are temporarily stored for the download

  3. #3
    Join Date
    Jun 2009
    Location
    Miami, Fl
    Posts
    138
    Plugin Contributions
    0

    Default Re: After upgrade Zen Cart 1.5 customers can't download .dmg files

    Can you tell me what I need to add in that file? Because I used the same lines but it make the website unavailable.

  4. #4
    Join Date
    Dec 2009
    Location
    Amersfoort, The Netherlands
    Posts
    2,846
    Plugin Contributions
    25

    Default Re: After upgrade Zen Cart 1.5 customers can't download .dmg files

    In the .htaccess file in the pub there should also be a line (mine is at line 31):
    Code:
    # but now allow just *certain* necessary files:
    <FilesMatch ".*\.(zip|ZIP|gzip|dmg|DMG|pdf|PDF|mp3|MP3|swf|SWF|wma|WMA|wmv|WMV|wav|epub)$">
      Order Allow,Deny
      Allow from all
    </FilesMatch>
    Do you also use the htaccess files supplied with ZC 1.5.x or did you leave the old ones in place?

  5. #5
    Join Date
    Jun 2009
    Location
    Miami, Fl
    Posts
    138
    Plugin Contributions
    0

    Default Re: After upgrade Zen Cart 1.5 customers can't download .dmg files

    That is the problem. I would like to use the original version when upgrade to 1.5 but in the hurry to resolve the problem (I had a client claiming to download the product)... so I modified the .htaccess . THis is the lines. Do you discover where is the mistake? I used your lines but the problem persist.
    Code:
    ############################################
    ## uncomment these lines for CGI mode
    ## make sure to specify the correct cgi php binary file name
    ## it might be /cgi-bin/php-cgi
    #    Action php5-cgi /cgi-bin/php5-cgi
    #    AddHandler php5-cgi .php
    ############################################
    ## GoDaddy specific options
    #   Options -MultiViews
    ## you might also need to add this line to php.ini
    ##     cgi.fix_pathinfo = 1
    ## if it still doesn't work, rename php.ini to php5.ini
    ############################################
    ## this line is specific for 1and1 hosting
    #AddType x-mapp-php5 .php
    #AddHandler x-mapp-php5 .php
    ############################################
    ## default index file
    DirectoryIndex index.php
    <IfModule mod_php5.c>
    ############################################
    ## adjust memory limit
    #    php_value memory_limit 64M
    ############################################
    ## disable magic quotes for php request vars
    ############################################
    ## disable automatic session start
    ## before autoload was initialized
    ############################################
    # but now allow just *certain* necessary files:
    <FilesMatch ".*\.(zip|ZIP|gzip|dmg|DMG|pdf|PDF|mp3|MP3|swf|SWF|wma|WMA|wmv|WMV|wav|epub)$">
      Order Allow,Deny
      Allow from all
    </FilesMatch>
    ############################################
    ## enable resulting html compression
    #php_flag zlib.output_compression on
    ###########################################
    # disable user agent verification to not break multiple image upload
    ###########################################
    # turn off compatibility with PHP4 when dealing with objects
    </IfModule>
    <IfModule mod_security.c>
    ###########################################
    # disable POST processing to not break multiple image upload
    SecFilterEngine Off
    SecFilterScanPOST Off
    </IfModule>
    <IfModule mod_deflate.c>
    ############################################
    ## enable apache served files compression
    ## http://developer.yahoo.com/performance/rules.html#gzip
    # Insert filter on all content
    ###SetOutputFilter DEFLATE
    # Insert filter on selected content types only
    #AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript
    # Netscape 4.x has some problems...
    #BrowserMatch ^Mozilla/4 gzip-only-text/html
    # Netscape 4.06-4.08 have some more problems
    #BrowserMatch ^Mozilla/4\.0[678] no-gzip
    # MSIE masquerades as Netscape, but it is fine
    #BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
    # Don't compress images
    #SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary
    # Make sure proxies don't deliver the wrong content
    #Header append Vary User-Agent env=!dont-vary
    </IfModule>
    <IfModule mod_ssl.c>
    ############################################
    ## make HTTPS env vars available for CGI mode
    SSLOptions StdEnvVars
    </IfModule>
    <IfModule mod_rewrite.c>
    ############################################
    ## enable rewrites
    Options +FollowSymLinks
    RewriteEngine on
    ############################################
    ## you can put here your magento root folder
    ## path relative to web root
    #RewriteBase /
    ############################################
    ## workaround for HTTP authorization
    ## in CGI environment
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    ############################################
    ## always send 404 on missing files in these folders
    RewriteCond %{REQUEST_URI} !^/(media|skin|js|downloads)/
    ############################################
    ## never rewrite for existing files, directories and links
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-l
    ############################################
    ## rewrite everything else to index.php
    RewriteRule .* index.php [L]
    </IfModule>
    ############################################
    ## Prevent character encoding issues from server overrides
    ## If you still have problems, use the second line instead
    AddDefaultCharset Off
    #AddDefaultCharset UTF-8
    <IfModule mod_expires.c>
    ############################################
    ## Add default Expires header
    ## http://developer.yahoo.com/performance/rules.html#expires
    ExpiresDefault "access plus 1 year"
    </IfModule>
    ############################################
    ## By default allow all access
    Order allow,deny
    Allow from all
    ############################################
    ## If running in cluster environment, uncomment this
    ## http://developer.yahoo.com/performance/rules.html#etags
    #FileETag none
    RewriteCond %{HTTP_REFERER} !^http://ohmyicons.com/.*$      [NC]
    RewriteCond %{HTTP_REFERER} !^http://ohmyicons.com$      [NC]
    RewriteCond %{HTTP_REFERER} !^http://www.ohmyicons.com/.*$      [NC]
    RewriteCond %{HTTP_REFERER} !^http://www.ohmyicons.com$      [NC]
    RewriteCond %{HTTP_REFERER} !^https://www.ohmyicons.com/.*$      [NC]
    RewriteCond %{HTTP_REFERER} !^https://www.ohmyicons.com$      [NC]
    RewriteCond %{HTTP_REFERER} !^https://ohmyicons.com/.*$      [NC]
    RewriteCond %{HTTP_REFERER} !^https://ohmyicons.com$      [NC]
    RewriteRule .*\.(jpg|jpeg|gif|png|bmp|swf)$ - [F,NC]

  6. #6
    Join Date
    Dec 2009
    Location
    Amersfoort, The Netherlands
    Posts
    2,846
    Plugin Contributions
    25

    Default Re: After upgrade Zen Cart 1.5 customers can't download .dmg files

    this looks like a .htaccess form the root. Did you really edit the .htaccess files from the download and pub folder?

  7. #7
    Join Date
    Jun 2009
    Location
    Miami, Fl
    Posts
    138
    Plugin Contributions
    0

    Default Re: After upgrade Zen Cart 1.5 customers can't download .dmg files

    Genius. Sorry... I never saw the /pub directory. I thought that you was talking the /public that is the root. Thanks a lot. Now is working fine.

  8. #8
    Join Date
    Dec 2009
    Location
    Amersfoort, The Netherlands
    Posts
    2,846
    Plugin Contributions
    25

    Default Re: After upgrade Zen Cart 1.5 customers can't download .dmg files

    Great , that's the second person this week calling me a genius Will someone please tell my wife

    Thanks for the feed back

  9. #9
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,023
    Plugin Contributions
    32

    Default Re: After upgrade Zen Cart 1.5 customers can't download .dmg files

    Quote Originally Posted by Design75 View Post
    Great , that's the second person this week calling me a genius Will someone please tell my wife

    Thanks for the feed back
    I will if you tell my husband that that things will work out better if he just does it MY WAY..
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

 

 

Similar Threads

  1. Customers either can't download files or downloads are corrupt,
    By bearlymakinit in forum General Questions
    Replies: 3
    Last Post: 9 Mar 2011, 01:57 AM
  2. Can I customers straight to the download page right after payment?
    By momo in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 19 Oct 2010, 05:18 PM
  3. After upgrade customers can't download .dmg files?
    By DArnaez in forum Upgrading from 1.3.x to 1.3.9
    Replies: 4
    Last Post: 9 Oct 2010, 12:38 AM
  4. can't download after upgrade
    By goalsurfer in forum Upgrading from 1.3.x to 1.3.9
    Replies: 5
    Last Post: 30 May 2010, 10:14 PM
  5. Customers can't login after upgrade!
    By Grimmy2007 in forum Upgrading from 1.3.x to 1.3.9
    Replies: 3
    Last Post: 20 Dec 2007, 10:55 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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR