Htaccess File

Etskh/Jaya-CMS/master/.htaccess

DEFLATE
# Stolen shamelessly from Drupal
# Force simple error message for requests for non-existent favicon.ico.
<Files favicon.ico>
  ErrorDocument 404 "The requested file favicon.ico was not found."
</Files>

RewriteEngine on
RewriteBase /

# Hide all our files
RewriteRule ^(modules|data)  -  [F,NC,L]

# And use the public/ folder for anyhting with extensions
RewriteRule ^(/.*.(css|gif|jpg|js|ico|png|pdf)) /cache/public/$1 [NC,L]

# But all php pages should be redirected to views
#RewriteRule  ^([^.]*)$              /index.php?view=$1&$2    [NC,L,QSA]

# 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
Exit mobile version