Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Allowing one xml file in htaccess
#2
I put this htaccess into 'ebrochure' directory and everything seems to work now.

Code:
AddDefaultCharset UTF-8
Options -Indexes

# allows direct access to the XML files - remember, they hold all the data!
<Files ~ "\.xml$">
    Order allow,deny
    Allow from all
    Satisfy All
</Files>


# compress text, html, javascript, css, xml:
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript

# Or, compress certain file types by extension:
<files *.html>
SetOutputFilter DEFLATE
</files>

If I've done something terribly wrong (security issues etc) please don't hesitate to point it out as I really don't know much about htaccess and other server related stuff...
Reply


Messages In This Thread
Allowing one xml file in htaccess - by vasitellapahki - 2012-09-12, 22:28:06



Users browsing this thread: 1 Guest(s)