PHP Classes

File: tests/.htaccess

Recommend this page to a friend!
  Classes of Mahmoud Elnezamy  >  PHP Route Library  >  tests/.htaccess  >  Download  
File: tests/.htaccess
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: PHP Route Library
Route requests to registered callback functions
Author: By
Last change:
Date: 1 year ago
Size: 1,464 bytes


Class file image Download
# Use PHP5.6 Single php.ini as default
AddHandler application/x-httpd-php56s .php

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [QSA,L]

#deny .htaccess from directly access.
<Files ".htaccess">
    order allow,deny
    deny from all

# If you get 'No input file specified'. message or you have problems with FastCGI.
# Remove (#) from beginning Options +ExecCGI.
Options +ExecCGI

 # If Apache is compiled with built in mod_deflade/GZIP support
 # then GZIP Javascript, CSS, HTML and XML so they're sent to
 # the client faster.
<IfModule mod_deflate.c>
	AddOutputFilterByType DEFLATE application/javascript text/css text/html text/xml application/json

 # mod_gzip is an external extension module for Apache that allows you to quickly and easily compress your files before you send them to the client.
 # This speeds up your site like crazy!
 # If your hosting provider has mod_gzip module enabled start GZIP.
<ifModule mod_gzip.c>
    mod_gzip_on Yes
    mod_gzip_dechunk Yes
    mod_gzip_item_include file \.(html?|txt|css|js|php|pl|tpl)$
    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.*