Forums / General Questions / editing .htaccess to allow tff and woff ?

editing .htaccess to allow tff and woff ?

Started by azwli on 15 Apr 2011, 7:31 PM · Views: 1,294

Results 1 to 3 of 3
15 Apr 2011, 7:31 PM
#1
azwli avatar

azwli

New Zenner

Join Date:
Feb 2007
Posts:
81
Plugin Contributions:
0

editing .htaccess to allow tff and woff ?

Hello, I have been getting this server error:

[Fri Apr 15 12:00:16 2011] [error] [client 97.113.70.35] File does not exist: /home/USER/public_html/403.shtml, referer: [URL]http://wholesaleforms.com/includes/templates/OUR_template/css/stylesheet.css[/URL]
[Fri Apr 15 12:00:16 2011] [error] [client 97.113.70.35] client denied by server configuration: /home/USER/public_html/includes/templates/WSF_template/css/Action_Man-webfont.woff, referer: [URL]http://wholesaleforms.com/includes/templates/OUR_template/css/stylesheet.css[/URL]
[Fri Apr 15 12:00:12 2011] [error] [client 97.113.70.35] File does not exist: /home/USER/public_html/403.shtml, referer: [URL]http://wholesaleforms.com/includes/templates/OUR_template/css/stylesheet.css[/URL]
[Fri Apr 15 12:00:12 2011] [error] [client 97.113.70.35] client denied by server configuration: /home/USERl/public_html/includes/templates/OUR_template/css/Action_Man-webfont.ttf, referer: [URL]http://wholesaleforms.com/includes/templates/OUR_template/css/stylesheet.css[/URL]
```I fixed it by editing includes/.htaccess and adding tff and woff to the list of accepted file extensions.  Is this a safe practice?

Thanks.
16 Apr 2011, 2:48 AM
#2
drbyte avatar

drbyte

Sensei

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

Re: editing .htaccess to allow tff and woff ?

If those are file types you need for something specific on your site to work, then allowing those types is what you need to do.

.
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 Apr 2011, 4:05 AM
#3
azwli avatar

azwli

New Zenner

Join Date:
Feb 2007
Posts:
81
Plugin Contributions:
0

Re: editing .htaccess to allow tff and woff ?

DrByte:

If those are file types you need for something specific on your site to work, then allowing those types is what you need to do.
Thanks, that helps. :smile: