## EXPIRES CACHING ##
# Tarayıcı Ön Belleğini Aktifleştirme Kodu
<IfModule mod_expires.c>
ExpiresActive On
# Görsel Dosyaları
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/jpg "access plus 1 year"
ExpiresByType image/gif "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
ExpiresByType image/webp "access plus 1 year"
ExpiresByType image/svg+xml "access plus 1 year"
ExpiresByType image/x-icon "access plus 1 year"
# Video Dosyaları
ExpiresByType video/mp4 "access plus 1 year"
ExpiresByType video/mpeg "access plus 1 year"
# CSS ve JavaScript Dosyaları
ExpiresByType text/css "access plus 1 month"
ExpiresByType text/javascript "access plus 1 month"
ExpiresByType application/javascript "access plus 1 month"
# Diğer Dosya Türleri
ExpiresByType application/pdf "access plus 1 month"
ExpiresByType application/x-shockwave-flash "access plus 1 month"
ExpiresByType text/html "access plus 600 seconds"
# Yazı Tipleri (Fontlar)
ExpiresByType application/vnd.ms-fontobject "access plus 1 year"
ExpiresByType application/x-font-ttf "access plus 1 year"
ExpiresByType application/x-font-opentype "access plus 1 year"
ExpiresByType application/x-font-woff "access plus 1 year"
</IfModule>
## EXPIRES CACHING ##
# Yöntem-1: Statik Ögeler İçin 1 Aylık Önbellek Kontrolü
<filesMatch ".(css|jpg|jpeg|png|gif|js|ico)$">
Header set Cache-Control "max-age=31536000, public"
</filesMatch>
# Yöntem-2: Kodu Dosya Çeşitleri İçin Optimize Etmek
<IfModule mod_headers.c>
<filesmatch "\.(ico|flv|jpg|jpeg|png|gif|css|swf)$">
Header set Cache-Control "max-age=2678400, public"
</filesmatch>
<filesmatch "\.(html|htm)$">
Header set Cache-Control "max-age=7200, private, must-revalidate"
</filesmatch>
<filesmatch "\.(pdf)$">
Header set Cache-Control "max-age=86400, public"
</filesmatch>
<filesmatch "\.(js)$">
Header set Cache-Control "max-age=2678400, private"
</filesmatch>
</IfModule>#Redirect to HTTPS
RewriteEngine On
RewriteCond %{QUERY_STRING} (\|%3E) [NC,OR]
RewriteCond %{QUERY_STRING} base64_encode.\(.\) [OR]
RewriteCond %{QUERY_STRING} (\<|%3C).script.(\>|%3E) [NC,OR]
RewriteCond %{QUERY_STRING} (\<|%3C).iframe.(\>|%3E) [NC,OR]
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [NC,OR]
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2}) [NC,OR]
RewriteCond %{QUERY_STRING} ^.(;|<|>|'|"|\)|%0A|%0D|%22|%27|%3C|%3E|%00).(/\|union|select|insert|cast|set|declare|drop|update|md5|benchmark). [NC,OR]
RewriteCond %{QUERY_STRING} (<|%3C)([^s]s)+cript.(>|%3E) [NC,OR]
RewriteCond %{QUERY_STRING} (<|%3C)([^i]i)+frame.(>|%3E) [NC,OR]
RewriteCond %{QUERY_STRING} \.\./\.\. [OR]
RewriteCond %{QUERY_STRING} (sp_executesql) [NC,OR]
RewriteCond %{QUERY_STRING} ^.(<|>|'|%0A|%0D|%27|%3C|%3E|%00). [NC,OR]
RewriteCond %{REQUEST_URI} (\<|%3C).script.(\>|%3E) [NC,OR]
RewriteCond %{REQUEST_URI} onmouseover [NC]
RewriteCond %{REQUEST_URI} style [NC]
RewriteRule ^ - [F]
RewriteEngine On
RewriteCond %{QUERY_STRING} base64_encode.\\(.\\) [OR]
RewriteCond %{QUERY_STRING} (\\<|<).script.(\\>|>) [NC,OR]
RewriteCond %{QUERY_STRING} GLOBALS(=|\\[|\\%[0-9A-Z]{0,2}) [OR]
RewriteCond %{QUERY_STRING} _REQUEST(=|\\[|\\%[0-9A-Z]{0,2})
RewriteRule ^(.*)$ index.php [F,L]
RewriteCond %{HTTP_USER_AGENT} ^$ [OR]
RewriteCond %{HTTP_USER_AGENT} ^(-|\.|') [OR]
RewriteCond %{HTTP_USER_AGENT} ^(.)(<|>|%3C|%3E)(.) [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^(java|curl|wget)(.*) [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^(.)(libwww-perl|libwwwperl|snoopy|curl|wget|winhttp|python|nikto|scan|clshttp|archiver|loader|email|harvest|fetch|extract|grab|miner|suck|reaper|leach)(.) [NC,OR]
RewriteCond %{REQUEST_URI} ^(/,|/;|/<|/>|/'|/`|/%2C|/%3C|/%3E|/%27|/////) [NC,OR]
RewriteCond %{HTTP_REFERER} ^(.)(%00|%08|%09|%0A|%0B|%0C|%0D|%0E|%0F|%2C|<|>|'|%3C|%3E|%26%23|%27|%60)(.) [NC,OR]
RewriteCond %{QUERY_STRING} ^(.)(%00|%08|%09|%0A|%0B|%0C|%0D|%0E|%0F|%2C|%3C|%3E|%27|%26%23|%60)(.) [NC,OR]
RewriteCond %{QUERY_STRING} ^(.)('|-|<|>|,|/|\\|\.a|\.c|\.t|\.d|\.p|\.i|\.e|\.j)(.) [NC,OR]
RewriteCond %{HTTP_COOKIE} ^(.)(<|>|'|%3C|%3E|%27)(.) [NC]
RewriteRule ^(.*)$ index.php [NC]
RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
RewriteRule .* - [F]
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
RewriteEngine On
RewriteRule ^rss\.xml$ rss.php [L]
RewriteRule ^sitemap\.xml$ sitemap.php [L]
RewriteRule ^404$ 404.php [L,QSA]
RewriteRule ^hakkimizda$ hakkimizda.php [L,QSA]
RewriteRule ^manset$ manset.php [L,QSA]
RewriteRule ^iletisim$ iletisim.php [L,QSA]
RewriteRule ^sayfa/([0-9]+) index.php?&sayfa=$1 [L,QSA]
RewriteRule ^ara$ ara.php [L,QSA]
RewriteRule ^([0-9a-zA-Z-_]+)/amp$ amp.php?&icerik=$1 [L,QSA]
RewriteRule ^([0-9a-zA-Z-_]+)$ icerik.php?&icerik=$1 [L,QSA]
RewriteRule ^kategori/([0-9a-zA-Z-_]+) kategori.php?&kategori=$1 [L,QSA]
RewriteRule ^etiket/([0-9a-zA-Z-_]+)$ etiket.php?&etiket=$1 [L,QSA]
# BEGIN cPanel-generated php ini directives, do not edit
# Manual editing of this file may result in unexpected behavior.
# To make changes to this file, use the cPanel MultiPHP INI Editor (Home >> Software >> MultiPHP INI Editor)
# For more information, read our documentation (https://go.cpanel.net/EA4ModifyINI)
<IfModule php7_module>
php_flag display_errors On
php_value max_execution_time 300
php_value max_input_time 600
php_value max_input_vars 10000
php_value memory_limit 1024M
php_value post_max_size 900M
php_value session.gc_maxlifetime 1440
php_value session.save_path "/var/cpanel/php/sessions/ea-php74"
php_value upload_max_filesize 900M
php_flag zlib.output_compression On
</IfModule>
<IfModule lsapi_module>
php_flag display_errors On
php_value max_execution_time 300
php_value max_input_time 600
php_value max_input_vars 10000
php_value memory_limit 1024M
php_value post_max_size 900M
php_value session.gc_maxlifetime 1440
php_value session.save_path "/var/cpanel/php/sessions/ea-php74"
php_value upload_max_filesize 900M
php_flag zlib.output_compression On
</IfModule>
# END cPanel-generated php ini directives, do not edit
# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php74” package as the default “PHP” programming language.
<IfModule mime_module>
AddHandler application/x-httpd-ea-php74 .php .php7 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit