RewriteEngine On

RewriteCond %{HTTP_HOST} ^45\.55\.222\.33
RewriteRule (.*) http://fantasy.vinfotechprojects.net/$1 [R=301,L]

#RewriteCond %{HTTPS} !=on
#RewriteCond %{HTTP_HOST} !^www\.(.*)$ [NC]
#RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]

RewriteCond %{REMOTE_ADDR} !^(192\.168|10\.)
RewriteCond %{HTTP_HOST} !=fantasy.vinfotechprojects.net
RewriteCond %{HTTP_HOST} !=localhost
RewriteCond %{HTTP_HOST} !^127\.0\.1\.10
#RewriteCond %{HTTPS} !=on
#RewriteCond %{HTTP_HOST} !^www\.(.*)$ [NC]
#RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]

php_value max_input_vars 10000
php_value upload_max_filesize 30M
php_value post_max_size 30M

#Gzip
<ifmodule mod_deflate.c>
    AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript text/javascript
</ifmodule>
#End Gzip

<IfModule mod_expires.c>
    ExpiresActive On
    ExpiresDefault "access plus 1 week"
    ExpiresByType text/html "access plus 1 week"
    ExpiresByType image/gif "access plus 1 week"
    ExpiresByType image/jpeg "access plus 1 week"
    ExpiresByType image/png "access plus 1 week"
    ExpiresByType text/css "access plus 1 week"
    ExpiresByType text/javascript "access plus 1 week"
    ExpiresByType application/x-javascript "access plus 1 week"
    ExpiresByType text/xml "access plus 1 week"
</IfModule>

<ifModule mod_headers.c>
# Set up caching on media files for 1 month
    <FilesMatch "\.(css|js|ico|gif|jpg|jpeg|png|flv|pdf|swf|mov|mp3|wmv|ppt)$">
        Header set Cache-Control "max-age=259200, proxy-revalidate"
    </FilesMatch>
</ifModule>

<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> 
