ameralrdadi/Cliprz/master/.htaccess - Htaccess File

ameralrdadi/Cliprz/master/.htaccess

# /**
#  * Cliprz framework
#  *
#  * An open source application development framework for PHP 5.4.0 or newer
#  *
#  * @package    Cliprz
#  * @author     Yousef Ismaeil <cliprz@gmail.com>
#  * @copyright  Copyright (c) 2013 - 2014, Cliprz Developers team
#  * @license    MIT
#  * @link       http://www.cliprz.org
#  * @version    1.0.0
#  */

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

#Options +ExecCGI

<IfModule mod_rewrite.c>

    # Add Indexes in all folders
    Options All -Indexes
    #Options +FollowSymLinks -Indexes

    RewriteEngine on

    # Installation directory If you get a 404 pages remove # from below line
    # Don't forget to add the Installation directory
  #AllowOverride All
  #RewriteBase /Path/To/Cliprz

  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d

  # Step 1 handling php5-cgi FastCGI
  <IfModule mod_fcgid.c>
      RewriteRule ^(.*)$ index.php?/$1 [QSA,L]
  </IfModule>

    # Step 2 handling Apache installations
  <IfModule !mod_fcgid.c>
    <IfModule mod_php5.c>
        RewriteRule ^(.*)$ index.php/$1 [L]
    </IfModule>
    <IfModule !mod_php5.c>
        RewriteRule .* index.php?/$0 [PT,L,QSA]
    </IfModule>
  </IfModule>

</IfModule>

# 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
</IfModule>

# 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)$
    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>

On Github License

Files

Download PDF of Htaccess file
DEFLATE, REQUEST_FILENAME

Comments

Apache