Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2011
    Posts
    25
    Plugin Contributions
    0

    Default htaccess problem

    After installing zen cart for my add-on domain, I found red x's for all my gifs when accessing the store or admin area.

    After reading previous posts, I found htaccess mentioned many times. I went to public_html and renamed .htaccess to .htaccesssav and now my add-on domain gifs are displaying.
    (Actually, a new and empty .htaccess file was generated)
    This is what was in my .htaccess file:

    RewriteEngine on
    ErrorDocument 404 /404.shtml

    RewriteCond %{HTTP_REFERER} !^http://domain.com/.*$ [NC]
    RewriteCond %{HTTP_REFERER} !^http://domain.com$ [NC]
    RewriteCond %{HTTP_REFERER} !^http://www.domain.com/.*$ [NC]
    RewriteCond %{HTTP_REFERER} !^http://www.domain.com$ [NC]
    RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ - [F,NC]

    Is the last line my problem?

  2. #2
    Join Date
    Jan 2004
    Posts
    58,246
    Blog Entries
    3
    Plugin Contributions
    106

    Default Re: htaccess problem

    That last line would certainly be related to your images problems.
    All the other lines are things you added yourself too, since Zen Cart doesn't put anything in that .htaccess file.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. .htaccess file causes problem
    By jasonhoward64 in forum General Questions
    Replies: 3
    Last Post: 16 Mar 2011, 08:15 AM
  2. Problem with .htaccess file
    By number5 in forum General Questions
    Replies: 4
    Last Post: 30 Sep 2009, 02:20 AM
  3. .htaccess and domain problem
    By miles in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 5 May 2008, 11:37 AM
  4. .htaccess Problem
    By amirey in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 10 Jun 2006, 06:12 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
  •