Results 1 to 5 of 5
  1. #1
    Join Date
    Sep 2009
    Posts
    3
    Plugin Contributions
    0

    Default Problem with .htaccess file

    Hi,

    I've just installed Zen Cart v1.3.8 on a Linux server and starting configuring it to secure the store.

    Can't access admin page when I use .htaccess file. Got "Forbidden
    You don't have permission to access /store/admin/ on this server.
    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request." error message.

    Can open admin page and log in if I rename .htaccess file, I notice the admin page also works fine if I remove

    <Files *.php>
    Order Deny,Allow
    Deny from all
    </Files>

    from .htaccess.
    How can I make the admin page work while still using .htaccess file to protect php files?

    Thanks

  2. #2
    Join Date
    Jul 2009
    Posts
    495
    Plugin Contributions
    0

    Default Re: Problem with .htaccess file

    i can post u my htaccess file...mine works on a linux server..
    not sure its the right one though...

  3. #3
    Join Date
    Jul 2009
    Posts
    495
    Plugin Contributions
    0

    Default Re: Problem with .htaccess file

    Code:
    # $Id: .htaccess 1105 2005-04-04 22:05:35Z birdbrain $
    #
    # This is used with Apache WebServers
    #
    # For this to work, you must include the parameter 'Options' to
    # the AllowOverride configuration
    #
    # Example:
    #
    # <Directory "/usr/local/apache/htdocs">
    #   AllowOverride Options
    # </Directory>
    #
    # 'All' with also work. (This configuration is in the
    # apache/conf/httpd.conf file)
    
    # The following makes adjustments to the SSL protocol for Internet
    # Explorer browsers
    
    <IfModule mod_setenvif.c>
      <IfDefine SSL>
        SetEnvIf User-Agent ".*MSIE.*" \
                 nokeepalive ssl-unclean-shutdown \
                 downgrade-1.0 force-response-1.0
      </IfDefine>
    </IfModule>
    
    # Fix certain PHP values
    
    #<IfModule mod_php4.c>
    #  php_value session.use_trans_sid 0
    #  php_value register_globals 1
    #</IfModule>
    
    # to turn off register_globals
    # php_value register_globals 0
    try that?

    thats the default admin .htaccess file i have...

  4. #4
    Join Date
    Sep 2009
    Posts
    3
    Plugin Contributions
    0

    Default Re: Problem with .htaccess file

    Thanks for sharing the code, I'll give it a go.

  5. #5
    Join Date
    Sep 2009
    Posts
    3
    Plugin Contributions
    0

    Default Re: Problem with .htaccess file

    A newbbie question regarding .htaccess file:

    In order to prevent unauthorized access to .php files of Zen Cart, do I need to put

    <Files *.php>
    Order Deny,Allow
    Deny from all
    </Files>

    in .htaccess? Or the default code in admin folder will secure php file?

    bit confused here as in the Zen-cart faq "Security Recommendations" they mention

    <Files *.php>
    Order Deny,Allow
    Deny from all
    </Files>

    details please follow the link
    https://www.zen-cart.com/tutorials/index.php?article=73

 

 

Similar Threads

  1. Replies: 5
    Last Post: 31 May 2011, 09:54 PM
  2. .htaccess file causes problem
    By jasonhoward64 in forum General Questions
    Replies: 3
    Last Post: 16 Mar 2011, 08:15 AM
  3. Issues with modifying htaccess file
    By heifer in forum General Questions
    Replies: 11
    Last Post: 22 Dec 2009, 03:42 PM
  4. Problem with Yahoo Hosting/Zen-Cart - .htaccess
    By Tanahy in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 25 Aug 2008, 04:40 AM

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