Totally Zenned
- Join Date:
- Aug 2007
- Location:
- Gijón, Asturias, Spain
- Posts:
- 2,876
- Plugin Contributions:
- 7
using a new .htaccess file to allow specific access?
Hi,
In a product description text I have an embedded link.
This opens a javascript popup next to the product description which loads an html file from
includes/languages/english/html_includes/CUSTOM/ht_product_advisor_en.html
(this file loads a constantly-updated swf reference file from a supplier).
Sounds a bit convoluted but it works very well. Or rather it did.
Now with the 139b .htaccess restrictions this direct access is blocked.
If I put another .htaccess file in the includes/languages/english/html_includes/CUSTOM/ directory containing this code:
<FilesMatch "ht_product_advisor_en.html">
Allow from all
</FilesMatch>
It works fine.
So my questions are
- Is there are better solution for the whole idea?
- If not, is the .htaccess code ok or should I be putting this html file somewhere else completely (download folder?)
Thanks
Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...