Htaccess File

sfhati/framework/master/.htaccess

REQUEST_FILENAME, REQUEST_URI
IndexIgnore *
RewriteEngine on
RewriteBase /

RewriteRule ^json/(.*)/(.*)$ /?tokken2=$2&jsonfiles=$1
RewriteRule ^calendar/([0-9]+)/([0-9]+)/([0-9]+)/([0-9]+)/(.*)$ /?calendar=$1&id=$2&m=$3&y=$4&redirect=done 
RewriteRule ^calendar/day/([0-9]+)/([0-9]+)/([0-9]+)/([0-9]+)/(.*)$ /?id=$1&calendar=$2&d=$3&m=$4&y=$5&redirect=done 
RewriteRule ^search/(.*)/([0-9]+)/(.*)$ /?id=$2&Search=$1&redirect=done 
RewriteRule ^forum/threads/([0-9]+)/([0-9]+)/(.*)$ /?id=$2&view_threads=$1&redirect=done 
RewriteRule ^forum/thread/([0-9]+)/([0-9]+)/(.*)$ /?id=$2&view_thread=$1&redirect=done 
RewriteRule ^flipbook/(.*)$ /?id=1&chng_tpl=plugin_preview&plgn=flip_book.inc&FLIPBOOK=2&redirect=done
RewriteRule ^admin$ /?chng_tpl=login&redirect=done
RewriteRule ^admin/$ /?chng_tpl=login&redirect=done

RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_URI} .(gif|jpg|jpeg|png)$ 
RewriteRule .* /uploaded/image_not_found.jpg [L]

<Files ~ "(php.ini|.inc|.htaccess|conf.php)$">
order deny,allow
deny from all
</Files>
<IfModule mod_gzip.c>
    mod_gzip_on       Yes
    mod_gzip_dechunk  Yes
    mod_gzip_item_include file      .(html?|txt|css|js|php|pl)$
    mod_gzip_item_include handler   ^cgi-script$
    mod_gzip_item_include mime      ^text/.*
    mod_gzip_item_include mime      ^application/x-javascript.*
    mod_gzip_item_exclude mime      ^image/.*
    mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
</IfModule>

<ifModule mod_expires.c>
  ExpiresActive On
  ExpiresDefault "access plus 10 seconds"
  ExpiresByType text/html "access plus 10 seconds"
  ExpiresByType image/gif "access plus 43200 seconds"
  ExpiresByType image/jpeg "access plus 43200 seconds"
  ExpiresByType image/png "access plus 43200 seconds"
  ExpiresByType text/css "access plus 543200 seconds"
  ExpiresByType text/javascript "access plus 543200 seconds"
  ExpiresByType application/x-javascript "access plus 543200 seconds"
</ifModule>

<ifModule mod_headers.c>
  <filesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|swf)$">
    Header set Cache-Control "max-age=43200, public"
  </filesMatch>
  <filesMatch "\.(css)$">
    Header set Cache-Control "max-age=43200, public"
  </filesMatch>
  <filesMatch "\.(js)$">
    Header set Cache-Control "max-age=43200, private"
  </filesMatch>
  <filesMatch "\.(xml|txt)$">
    Header set Cache-Control "max-age=43200, public, must-revalidate"
  </filesMatch>
  <filesMatch "\.(html|htm|php)$">
    Header set Cache-Control "max-age=10, private, must-revalidate"
  </filesMatch>
</ifModule>
Exit mobile version