Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <ifModule mod_php5.c>
- php_flag zlib.output_compression On
- php_value zlib.output_compression_level 5
- php_flag magic_quotes_gpc off
- php_flag short_open_tag off
- php_flag expose_php off
- php_flag display_errors on
- php_flag register_globals off
- php_flag allow_url_fopen on
- php_value file_uploads on
- php_value post_max_size 32M
- php_value upload_max_filesize 32M
- php_value max_execution_time 0
- php_value max_input_time -1
- php_value memory_limit 128M
- php_value default_charset "UTF-8"
- php_value session.gc_probability 1
- php_value session.gc_divisor 1000
- php_value session.gc_maxlifetime 21600
- </ifModule>
- RewriteEngine On
- IndexIgnore *
- Options -Indexes
- Options +FollowSymLinks
- RewriteCond %{REQUEST_METHOD} !^(GET|POST)
- RewriteRule .* - [F]
- RewriteCond %{THE_REQUEST} ^.*/index\.php
- RewriteRule .* - [F]
- RewriteCond %{HTTP_HOST} !^www\. [NC]
- RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
- RewriteBase /
- <IfModule mod_expires.c>
- ExpiresActive On
- ExpiresDefault "now plus 1 hour"
- ExpiresByType text/css "now plus 1 week"
- ExpiresByType application/javascript "now plus 1 week"
- ExpiresByType application/x-javascript "now plus 1 week"
- ExpiresByType image/bmp "now plus 1 year"
- ExpiresByType image/gif "now plus 1 year"
- ExpiresByType image/jpeg "now plus 1 year"
- ExpiresByType image/jp2 "now plus 1 year"
- ExpiresByType image/png "now plus 1 year"
- ExpiresByType image/x-icon "now plus 1 year"
- ExpiresByType image/ico "now plus 1 year"
- ExpiresByType image/icon "now plus 1 year"
- ExpiresByType application/x-shockwave-flash "now plus 1 year"
- ExpiresByType video/mpeg "now plus 1 year"
- ExpiresByType video/mp4 "now plus 1 year"
- </IfModule>
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteCond %{REQUEST_FILENAME} !-d
- RewriteCond %{REQUEST_URI} !\.(js|css|png|gif|jpg|jpeg|bmp|swf|xsl|doc|pdf|woff|eot|ttf|svg)$
- RewriteRule ^(.*)$ index.php?url=$1 [NC,L,QSA]
- RewriteCond %{REQUEST_FILENAME} -f
- RewriteRule ^(core|logs)(.*)$ - [F]
- RewriteCond %{REQUEST_FILENAME} -f
- RewriteCond %{REQUEST_URI} !\.(png|gif|jpg|jpeg|bmp|swf|xsl|doc|pdf|woff|eot|ttf|svg)$ [NC]
- RewriteRule ^(images)(.*)$ - [F]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement