If this is your first visit, check our documentation. To post, register or login.

htaccess problem

Locked

Started by jghogue on 1 Nov 2011, 8:44 PM · Views: 1,268

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
1 Nov 2011, 8:44 PM
#1
jghogue avatar

jghogue

New Zenner

Join Date:
Oct 2011
Posts:
35
Plugin Contributions:
0

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?

1 Nov 2011, 9:44 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

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!
Donate to: DrByte directly or to the Zen Cart team as a whole

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.