Zen Cart Logo
Forums / General Questions / How do I make these .htaccess edits?

How do I make these .htaccess edits?

Views: 1,252

Results 1 to 11 of 11
16 Feb 2012, 3:07 AM
#1
adiamond avatar

adiamond

New Zenner

Join Date:
Jan 2011
Posts:
58
Plugin Contributions:
0

How do I make these .htaccess edits?

Hello, I'm hoping somebody here can help me out. I'm not all that familiar working with .htaccess files. So, when I was reading the documentation for installing a ZC add-on, EasyPopulate, and it said:

Note: If you are using Zencart 1.5 and want to move your Uploads directory into this folder, you will need to customize an .htaccess file to add allowed file types of .CSV and .TXT.

How do I do this?

Thanks for your help.

16 Feb 2012, 5:16 PM
#2
missnura_com avatar

missnura_com

New Zenner

Join Date:
Feb 2012
Location:
Sweden
Posts:
30
Plugin Contributions:
0

Re: How do I make these .htaccess edits?

I think i have the same problem as u, do u also get blank page when u try to loging your admin site, mine is blank i still believe that some web hosts wont allow .httaccess file on their server

/Missnura

16 Feb 2012, 10:14 PM
#3
drbyte avatar

drbyte

Sensei

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

Re: How do I make these .htaccess edits?

missnura's issue is completely different, and is discussed at length in her other posts on the same topic.

.
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.

16 Feb 2012, 11:18 PM
#4
adiamond avatar

adiamond

New Zenner

Join Date:
Jan 2011
Posts:
58
Plugin Contributions:
0

Re: How do I make these .htaccess edits?

Right. My issue is that I need to allow files such as .txt and .csv for the script to function in this one specific directory. The problem is, I don't know how. I know that in trying to secure my site, one of the instructions were to disable .txt and other files, and that code is in the root. But I'm at a loss here.

I found this code online, on an unrelated website:

<Files *.txt, *.csv> 
Order Allow,Deny
allow from all 
</Files> 

Does this look correct?

16 Feb 2012, 11:36 PM
#5
drbyte avatar

drbyte

Sensei

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

Re: How do I make these .htaccess edits?

Which SPECIFIC folder are you talking about? What is its EXACT path on your server? And are you actually having problems using it now, or are you just getting hung up on an instruction point that may or may not even be relevant?

.
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.

16 Feb 2012, 11:57 PM
#6
adiamond avatar

adiamond

New Zenner

Join Date:
Jan 2011
Posts:
58
Plugin Contributions:
0

Re: How do I make these .htaccess edits?

I installed EasyPopulate, and the folder in question is:

public_html/secret-zencart-directory/my-secret-zencart-temp-directory/

17 Feb 2012, 12:05 AM
#7
drbyte avatar

drbyte

Sensei

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

Re: How do I make these .htaccess edits?

You probably don't need to make any changes then.

.
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.

17 Feb 2012, 12:34 AM
#8
adiamond avatar

adiamond

New Zenner

Join Date:
Jan 2011
Posts:
58
Plugin Contributions:
0

Re: How do I make these .htaccess edits?

Well, i dunno. Here's a copy of the .htaccess file in my root:

RewriteEngine off
<IfModule mod_suphp.c>
	suPHP_ConfigPath /home/myspecialplace/public_html/php.ini
	<Files php.ini>
		order allow,deny
		deny from all
	</Files>
</IfModule>
<Files *.txt>
	Order Deny,Allow
	Deny from all
</Files>
17 Feb 2012, 12:36 AM
#9
adiamond avatar

adiamond

New Zenner

Join Date:
Jan 2011
Posts:
58
Plugin Contributions:
0

Re: How do I make these .htaccess edits?

Sorry, in response to:

...or are you just getting hung up on an instruction point that may or may not even be relevant?

Yes.

17 Feb 2012, 5:11 AM
#10
drbyte avatar

drbyte

Sensei

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

Re: How do I make these .htaccess edits?

Not sure why you've added this:```
<Files *.txt>
Order Deny,Allow
Deny from all
</Files>


As far as I can tell, those instructions are probably only relevant if you're wanting to download (export) EZP data by clicking a link on your browser. There are other much more secure ways to do it, such as using SFTP. Nothing else would legitimately require any alteration to the .htaccess.
And, the .htaccess the instructions are referring to is probably one in your /admin/ folder, or better yet, your /admin/temp/ folder, not in the root.

You really should be asking these questions in the thread devoted to that addon, because your questions are only relevant to the use of the addon.

.
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.

24 Jun 2012, 11:38 AM
#11
dairymom avatar

dairymom

New Zenner

Join Date:
Jun 2012
Posts:
12
Plugin Contributions:
0

Re: How do I make these .htaccess edits?

Did you get a solution?