Page 1 of 2 12 LastLast
Results 1 to 10 of 41

Hybrid View

  1. #1
    Join Date
    Feb 2012
    Posts
    78
    Plugin Contributions
    0

    Default redirect not working and host says its not their problem

    webpage
    www.michaelhulak.com

    username- [email protected]
    password- Password1

    make an order for a free wallpaper
    redirect is created when attempted to download

    when downloading, error appears

    HTTP/1.0 403 Forbidden
    Date: Mon, 07 May 2012 06:42:04 GMT
    Server: Apache
    Content-Length: 371
    Connection: close
    Content-Type: text/html; charset=iso-8859-1

    <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
    <html><head>
    <title>403 Forbidden</title>
    </head><body>
    <h1>Forbidden</h1>
    <p>You don't have permission to access /pub/.cybmksklnmtsmhvrop/2009_04-25_IMG_7615_ED.jpg
    on this server.</p>
    <p>Additionally, a 403 Forbidden
    error was encountered while trying to use an ErrorDocument to handle the request.</p>
    </body></html>

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,399
    Plugin Contributions
    87

    Default Re: redirect not working and server says it is zencart problem

    You'll need to edit the /pub/.htaccess file to include the .jpg file extension in the list of allowable files:

    Code:
    #
    # @copyright Copyright 2003-2011 Zen Cart Development Team
    # @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    # @version $Id: .htaccess 18695 2011-05-04 05:24:19Z drbyte $
    #
    
    ## the following line is needed to allow Download-By-Redirect to work
      Options +FollowSymLinks
    
    #
    # This is used with Apache WebServers
    #
    # The following blocks direct HTTP requests to all filetypes in this directory recursively, except certain approved exceptions
    # It also prevents the ability of any scripts to run. No type of script, be it PHP, PERL or whatever, can normally be executed if ExecCGI is disabled.
    # Will also prevent people from seeing what is in the dir. and any sub-directories
    #
    # For this to work, you must include either 'All' or at least: 'Limit' and 'Indexes' parameters to the AllowOverride configuration in your apache/conf/httpd.conf file.
    # Additionally, if you want the added protection offered by the OPTIONS directive below, you'll need to add 'Options' to the AllowOverride list, if 'All' is not specified. 
    # Example:
    #<Directory "/usr/local/apache/htdocs">
    #  AllowOverride Limit Options Indexes
    #</Directory>
    ###############################
    
    # deny *everything*
    <FilesMatch ".*">
      Order Allow,Deny
      Deny from all
    </FilesMatch>
    
    # but now allow just *certain* necessary files:
    <FilesMatch ".*\.(zip|ZIP|gzip|pdf|PDF|mp3|MP3|swf|SWF|wma|WMA|wmv|WMV|wav|epub|jpg)$">
      Order Allow,Deny
      Allow from all
    </FilesMatch>
    
    <IfModule mod_headers.c>
      <FilesMatch ".*\.(zip|ZIP|gzip|pdf|PDF|mp3|MP3|swf|SWF|wma|WMA|wmv|WMV|wav|epub|jpg)$">
        # tell all downloads to automatically be treated as "save as" instead of launching in an application directly
        # ALERT: ForceType requires Apache2 or later. If using older version of Apache, it will need mod_mime installed. Or just comment out the ForceType line below
        # (to disable, just comment the next 2 lines by adding a '#' at the beginning of each):
        ForceType application/octet-stream
        Header set Content-Disposition attachment
      </FilesMatch>
    </IfModule>
    
    IndexIgnore */*
    
    
    ## NOTE: If you want even greater security to prevent hackers from running scripts in this folder, uncomment the following line (if your hosting company will allow you to use OPTIONS):
    # OPTIONS -Indexes -ExecCGI

  3. #3
    Join Date
    Feb 2012
    Posts
    78
    Plugin Contributions
    0

    Default Re: redirect not working and server says it is zencart problem

    i added jpg to the htaccess file and still no go
    <FilesMatch ".*\.(zip|ZIP|gzip|pdf|PDF|mp3|MP3|swf|SWF|wma|WMA|wmv|WMV|wav|epub|jpg|JPG) $">

    i removed the spaces to all the free wallpaper files and created a zip file for each as well. there is now an option to download zip or the original as a jpg. the files are in the download folder without a subdirectory. ie (root/downloads/XXXXX.zip and root/downloads/XXXXX.jpg) issue still happens.

    as a test, i renamed pub/htaccess to htaccess.old and tried and still problem. i put the htacess back in place

    not sure where to go to get these to work again

  4. #4
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,399
    Plugin Contributions
    87

    Default Re: redirect not working and server says it is zencart problem

    The userid and password you gave in your first post don't work ...

    Good job removing the spaces in the filenames, those always mess things up. Did you did remember to change the filenames associated with the products in your database, too?

    When you say that the files are in root/downloads, are your store's other files stored in root (e.g. is your configure.php file stored as root/includes/configure.php)?
    Last edited by lat9; 12 May 2012 at 12:28 PM.

  5. #5
    Join Date
    Feb 2012
    Posts
    78
    Plugin Contributions
    0

    Default Re: redirect not working and server says it is zencart problem

    Quote Originally Posted by lat9 View Post
    The userid and password you gave in your first post don't work ...

    Good job removing the spaces in the filenames, those always mess things up. Did you did remember to change the filenames associated with the products in your database, too?

    When you say that the files are in root/downloads, are your store's other files stored in root (e.g. is your configure.php file stored as root/includes/configure.php)?
    someone must have changed the password. it is again Password1

    the attributes db also reflect the changes to the file and both the jpg and the zip have a green circle indicating they are found.

    this is correct root/includes/configure.php

  6. #6
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: redirect not working and server says it is zencart problem

    I guess I really did offend you huh?

    Oh well. NMP

    Cheers
    Rod

  7. #7
    Join Date
    Feb 2012
    Posts
    78
    Plugin Contributions
    0

    Default redirect links not working all a sudden

    my page www.michaelhulak.com allows downloads and it uses redirects. the redirect is created and was working fine until recently. the redirect link isn't working. my server says it is because the link is not pointing to the proper location. here is what they explain the problem is.

    It seems that the path in your script is set to '/home/www/michaelhulak/download/wallpaper/2009_04_25_IMG_7615_ED.jpg' instead '../../download/wallpaper/2009_04_25_IMG_7615_ED.jpg'. That's why everytime when you are trying to load the link to the image you see this 403 error. You will need to set the path correctly in your script and this should resolve your problem.

    I recently had a problem with the page not loading properly and I found the problem.
    the configuration file pointed root as
    '/srv/disk1/817519/www/michaelhulak/');
    I changed it to the following the fix the problem. Now the page loads, but the downloads don't.
    '/home/www/michaelhulak/');

    how can i get the download redirects to work again?

  8. #8
    Join Date
    Feb 2012
    Posts
    78
    Plugin Contributions
    0

    Default Re: redirect links not working all a sudden

    when following the redirect using ftp, i get the following

    Status: Starting download of /michaelhulak/pub/.sgsgcffcfhtbxmdkf-1336524540/2012_04-06_IMG_1587_ED.jpg
    Command: CWD /michaelhulak/pub/.sgsgcffcfhtbxmdkf-1336524540
    Response: 250 CWD command successful
    Command: PWD
    Response: 257 "/michaelhulak/pub/.sgsgcffcfhtbxmdkf-1336524540" is the current directory
    Command: TYPE I
    Response: 200 Type set to I
    Command: PASV
    Response: 227 Entering Passive Mode (82,197,130,139,192,240).
    Command: RETR 2012_04-06_IMG_1587_ED.jpg
    Response: 550 2012_04-06_IMG_1587_ED.jpg: No such file or directory
    Error: Critical file transfer error

  9. #9
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: redirect links not working all a sudden

    Quote Originally Posted by MHulak View Post
    when following the redirect using ftp,
    I'm not entirely sure what you mean by this. FTP doesn't know anything about HTTP redirects. In fact FTP doesn't have *any* relationship or connection with the webserver (http) at all. They are entirely different servers with entirely different commands, and entirely different access restrictions.

    By default, they don't even have the same 'root' folder. FTP's entry point is generally one level up from the webserver (for admin logins), and in a completely different 'restricted' folder for others.

    I'm not sure if knowing this is going to help you in any way, but I know it sure can't hurt :)

    Cheers
    Rod

  10. #10
    Join Date
    Feb 2012
    Posts
    78
    Plugin Contributions
    0

    Default Re: redirect links not working all a sudden

    checking the link shows the following

    /home/www/michaelhulak/pub/.gytdbjkrgoiznhpyx-1336524740/2012_04-18_IMG_2083.zip -> /home/www/michaelhulak/download/Flower_Macros/2012 04-18 IMG_2083.zip

    and the path of the actual file is correct and it is downloadable by going directly

    www.michaelhulak.com/download/Flower_Macros/2012 04-18 IMG_2083.zip

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. my host says my my store is producing Google Analytics errors on their server
    By davowave in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 11 Jan 2012, 05:12 AM
  2. useing my template and its not working as planned
    By Eric24v in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 29 Jul 2010, 10:55 AM
  3. Replies: 8
    Last Post: 3 Jul 2010, 02:53 AM
  4. changing servers!! and its not working Please help!!
    By touchclothing in forum General Questions
    Replies: 5
    Last Post: 13 Apr 2008, 10:39 PM
  5. It was working and now its not!
    By roachie in forum Basic Configuration
    Replies: 1
    Last Post: 5 Dec 2006, 12:38 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