#Options +FollowSymlinks
SetOutputFilter DEFLATE
RewriteEngine on
Options -Indexes
RewriteCond %{HTTP_USER_AGENT} libwww-perl.*
RewriteRule .* ? [F,L]
ErrorDocument 404 /404.html
RewriteRule ^404.html.* template/404.php [NC]
ServerSignature Off
order allow,deny
deny from all
RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
RewriteRule ^index.php(.*)$ template/home.php [NC]
RewriteRule ^google_news.xml xml/sitemap_google_news.php [L,NC]
RewriteRule ^fotogaleri_(.*).xml xml/sitemap_gallery.php?page=$1 [L,NC]
RewriteRule ^video_google_(.*).xml xml/sitemap_upload_video.php?page=$1 [L,NC]
RewriteRule ^video_(.*).xml xml/sitemap_video.php?page=$1 [L,NC]
RewriteRule ^keywords_(.*).xml xml/sitemap_keywords.php?page=$1 [L,NC]
RewriteRule ^tags_(.*).xml xml/sitemap_tags.php?page=$1 [L,NC]
RewriteRule ^articles_(.*).xml xml/sitemap_articles.php?page=$1 [L,NC]
RewriteRule ^gazeteler.xml xml/sitemap-newspaper.php [L,NC]
RewriteRule ^sitemap_(.*).xml xml/sitemap.php?page=$1 [L,NC]
RewriteRule ^feed/instant-articles xml/rss_facebook.php$1 [L,NC]
RewriteRule ^sitemap(.*).xml xml/sitemap.php?page=1 [L,NC]
RewriteRule ^news_editor.xml xml/news_editor.php [L,NC]
RewriteRule ^rss/(.*)$ template/rss-s.php$1 [NC]
RewriteRule ^rss.html template/rss-s.php$1 [NC]
RewriteRule ^rss.xml$ xml/rss-general.php$1 [NC]
RewriteRule ^rss_(.*)_(.*).xml.* xml/rss-category.php?KatId=$2&Baslik=1 [NC]
RewriteRule ^makaleler.xml$ xml/rss_articles.php$1 [NC]
RewriteRule ^sondakika.xml$ xml/rss_last_minute.php$1 [NC]
RewriteRule ^rss_facebook.xml$ xml/rss-facebook.php$1 [NC]
RewriteRule ^rss_twitter.xml$ xml/rss-twitter.php$1 [NC]
RewriteRule ^rss_google.xml$ xml/rss-google.php$1 [NC]
RewriteRule ^rss_paylas.xml$ xml/rss-paylas.php$1 [NC]
RewriteRule ^lig-fiksturu/$ template/lig.php$1 [NC]
RewriteRule ^yonlendir/(.*)/(.*)/$ template/forward.php?Reklam=$1&Link=$2 [NC]
RewriteRule ^gunluk-burc/(.*)/ template/horoscopes.php?burc=$1 [L]
RewriteRule ^gunluk-burc/(.*) template/horoscopes.php?burc=$1 [L]
RewriteRule ^gunluk-burc/ template/horoscopes.php?burc=$1 [L]
RewriteRule ^hava-durumu/detay/(.*)/ template/weather-detail.php?id=$1 [NC,QSA,L]
RewriteRule ^hava-durumu/detay/(.*) template/weather-detail.php?id=$1 [NC,QSA,L]
RewriteRule ^hava-durumu template/weather.php$1 [NC]
RewriteRule ^sans-oyunlari template/chance-games.php$1 [NC]
RewriteRule ^haber-gonder/(.*)$ template/send-news.php$1 [NC]
RewriteRule ^haber-gonder.html template/send-news.php$1 [NC]
RewriteRule ^iletisim/(.*)$ template/contact.php$1 [NC]
RewriteRule ^iletisim.html template/contact.php$1 [NC]
RewriteRule ^yeni-uyelik template/register.php$1 [NC]
RewriteRule ^uye/facebook api/login/login-facebook.php?socialmedia=Facebook$1 [NC]
RewriteRule ^uye/twitter api/login/login-twitter.php?socialmedia=Twitter$1 [NC]
RewriteRule ^uye/google api/login/login-google.php?socialmedia=Google$1 [NC]
RewriteRule ^sifremi-unuttum template/forget-password.php$1 [NC]
RewriteRule ^makale/yazdir/(.*)/ template/articleprint.php?Id=$1 [NC]
RewriteRule ^haber/yazdir/(.*)/ template/print.php?Id=$1 [NC]
RewriteRule ^etkinlik/yazdir/(.*)/ template/calendarprint.php?Id=$1 [NC]
RewriteRule ^arsiv/(.*)$ template/archive.php$1 [NC]
RewriteRule ^gazete-mansetleri/(.*)/(.*)/(.*)/(.*)/ template/newspaper-detail.php?b=$1&g=$2&a=$3&y=$4 [NC,QSA,L]
RewriteRule ^gazete-mansetleri-arsiv/(.*)$ template/gazeteler-search.php$1 [L,NC]
RewriteRule ^gazete-mansetleri template/newspapers.php$1 [NC]
RewriteRule ^gunun-haberleri/sayfa/([0-9]+) template/today.php?sayfa=$1 [L,NC]
RewriteRule ^gunun-haberleri template/today.php?sayfa=$1&sayfa=$2 [L,NC]
RewriteRule ^tum-haberler template/all-news.php$1 [NC]
RewriteRule ^foto-galeri/(.*)/([0-9]+)/resim/([0-9]+)/ template/gallery-photos.php?Id=$2&Image=$3 [NC,QSA,L]
RewriteRule ^foto-galeri/(.*)/([0-9]+)/resim/([0-9]+) template/gallery-photos.php?Id=$2&Image=$3 [NC,QSA,L]
RewriteRule ^foto-galeri/(.*)/([0-9]+)/ template/gallery-photos.php?Id=$2 [NC,QSA,L]
RewriteRule ^foto-galeri/(.*)/([0-9]+) template/gallery-photos.php?Id=$2 [NC,QSA,L]
RewriteRule ^foto-galeri/(.*)/([0-9]+)/1/([0-9]+) template/gallery-photos.php?Id=$2 [NC,QSA,L]
RewriteRule ^foto-galeri/(.*)-([0-9]+) template/gallery-category.php?Id=$2 [NC,QSA,L]
RewriteRule ^foto-galeri template/gallery.php$1 [NC]
RewriteRule ^video-galeri/(.*)-([0-9]+) template/video-category.php?Id=$2 [NC,QSA,L]
RewriteRule ^video-galeri template/video.php$1 [NC]
RewriteRule ^video-detay/(.*)/([0-9]+) template/video-detail.php?Id=$2 [NC,QSA,L]
RewriteRule ^haber/(.*)/$ template/keywords.php?keyword=$1 [NC,L]
RewriteRule ^haber/(.*) template/keywords.php?keyword=$1 [NC,L]
RewriteRule ^keywords/(.*)/ template/keywords.php?keyword=$1 [NC,L]
RewriteRule ^keywords/(.*) template/keywords.php?keyword=$1 [NC,L]
RewriteRule ^s/keywords/(.*)/([0-9]+)/$ template/keywords.php?keyword=$1&s=$2 [L,NC]
RewriteRule ^video/(.*)/$ template/keywords-video.php?keyword=$1 [NC,L]
RewriteRule ^video/(.*) template/keywords-video.php?keyword=$1 [NC,L]
RewriteRule ^embed/(.*)/(.*)/ template/embed.php?Id=$2 [NC,L]
RewriteRule ^yazarlar/(.*)/(.*)/(.*)/ template/article-detail.php?Seo=$1&Id=$3 [NC,L]
RewriteRule ^yazarlar/(.*)/(.*)/(.*) template/article-detail.php?Seo=$1&Id=$3 [NC,L]
RewriteRule ^g-arsiv/(.*)-(.*).html template/g-arsiv.php?Id=$1 [NC,QSA,L]
RewriteRule ^g-kategori/(.*)-(.*)_([0-9]+).html template/gallery-category.php?Id=$2&sayfa=$3 [L,NC]
RewriteRule ^anketler template/surveys.php$1 [NC]
RewriteRule ^anket/(.*)/(.*)/ template/poll.php?Id=$1 [NC,QSA,L]
RewriteRule ^anket/(.*)/(.*) template/poll.php?Id=$1 [NC,QSA,L]
RewriteRule ^kunye.html template/page.php?Id=3 [NC,QSA,L]
RewriteRule ^kunye/ template/page.php?Id=3 [NC,QSA,L]
RewriteRule ^nobetci-eczaneler.html template/page.php?Id=6 [NC,QSA,L]
RewriteRule ^onemli-telefonlar.html template/page.php?Id=4 [NC,QSA,L]
RewriteRule ^s/(.*)-(.*).html template/page.php?Id=$2 [NC,QSA,L]
RewriteRule ^i/(.*)-(.*).html template/page-category.php?Id=$2 [NC,QSA,L]
RewriteRule ^yazar/(.*)/([0-9]+) template/author-category.php?Id=$1&s=$2 [L,NC]
RewriteRule ^yazar/(.*)/ template/author-category.php?Id=$1 [NC,QSA,L]
RewriteRule ^yazar/(.*) template/author-category.php?Id=$1 [NC,QSA,L]
RewriteRule ^kullanici-girisi/(.*)$ template/login.php$1 [NC]
RewriteRule ^uyelere-ozel/(.*)$ template/login.php$1 [NC]
RewriteRule ^profil template/profile.php$1 [NC]
RewriteRule ^etkinlikler template/calendar.php$1 [NC]
RewriteRule ^s/etkinlikler/([0-9]+)/ template/calendar.php?sayfa=$2 [L,NC]
RewriteRule ^etkinlik/(.*)/([0-9]+) template/calendar-detail.php?Id=$2 [NC,QSA,L]
RewriteRule ^ilan/sayfa/([0-9]+)/ template/media.php?sayfa=$1 [L,NC]
RewriteRule ^resmi-ilanlar template/media.php$1 [NC,QSA,L]
RewriteRule ^ilan-detay/(.*)/(.*)/ template/media-detail.php?Id=$2 [NC,QSA,L]
RewriteRule ^gazete-arsiv/(.*)/(.*)/sayfa/(.*)/ template/archive-detail.php?Id=$2&sayfa=$3 [NC]
RewriteRule ^gazete-arsiv/(.*)/(.*)/$ template/archive-detail.php?Id=$2 [NC]
RewriteRule ^arsiv-gazete/(.*)$ template/archive-gazete-post.php$1 [L,NC]
RewriteRule ^gazete-arsivi template/all-gazete-archive.php$1 [NC]
RewriteRule ^faydali-linkler/sayfa/([0-9]+)/ template/links.php?sayfa=$1 [L,NC]
RewriteRule ^faydali-linkler template/links.php$1 [NC]
RewriteRule ^videoyorumlari/(.*)/ template/videos-comment.php?VeriId=$1 [NC,QSA,L]
RewriteRule ^haberyorumlari/(.*)/ template/news-comment.php?VeriId=$1 [NC,QSA,L]
RewriteRule ^firmalar/sektor/(.*)/(.*)/s-([0-9]+) template/companies-category.php?Id=$2&s=$3 [L,NC]
RewriteRule ^firmalar/sektor/(.*)/(.*)/ template/companies-category.php?Id=$2 [NC,L]
RewriteRule ^firmalar/sektor/(.*)/(.*) template/companies-category.php?Id=$2 [NC,L]
RewriteRule ^firmalar/kategori/(.*)/(.*)/ template/companies-category.php?Id=$2 [NC,L]
RewriteRule ^firmalar/sayfa/([0-9]+) template/companies.php?s=$1 [L,NC]
RewriteRule ^firmalar template/companies.php$1 [NC]
RewriteRule ^firma/(.*)/(.*)/(.*)/ template/company-detail.php?Id=$3 [L,NC]
RewriteRule ^yorumlariniz/(.*)$ template/comments.php$1 [NC]
RewriteRule ^ilanlar/sektor/(.*)/(.*)/ template/advertisements-category.php?Id=$2 [NC,L]
RewriteRule ^ilanlar/sektor/(.*)/(.*) template/advertisements-category.php?Id=$2 [NC,L]
RewriteRule ^ilanlar/kategori/(.*)/(.*)/ template/advertisements-category.php?Id=$2 [NC,L]
RewriteRule ^ilanlar/sayfa/([0-9]+) template/all-adverts.php?sayfa=$1 [L,NC]
RewriteRule ^ilanlar/(.*)$ template/advertisements.php$1 [NC]
RewriteRule ^ilan/(.*)/(.*)/(.*)/ template/advertisement-detail.php?Id=$3 [NC,QSA,L]
RewriteRule ^gunun-mansetleri template/all-featured.php$1 [NC]
RewriteRule ^sitene-ekle template/webmaster.php$1 [NC]
RewriteRule ^ruyalar/(.*)/([0-9]+) template/results-dreams.php?ruya=$1&s=$2 [L,NC]
RewriteRule ^ruyalar/(.*) template/results-dreams.php$1 [NC,L]
RewriteRule ^haberler/(.*)/([0-9]+) template/results.php?haber=$1&s=$2 [L,NC]
RewriteRule ^haberler/(.*) template/results.php$1 [NC]
RewriteRule ^haberler/(.*) template/results.php?haber=$1 [NC]
RewriteRule ^videolar/(.*)/([0-9]+) template/results-video.php?video=$1&s=$2 [L,NC]
RewriteRule ^videolar/(.*) template/results-video.php$1 [NC,L]
RewriteRule ^galeriler/(.*)/([0-9]+) template/results-gallery.php?galeri=$1&s=$2 [L,NC]
RewriteRule ^galeriler/(.*) template/results-gallery.php$1 [NC,L]
RewriteRule ^amp/haber/(.*)-([0-9]+) template/amp.php?type=news&id=$2 [NC,QSA,L]
RewriteRule ^ruya-tabiri/([0-9]+) template/dreams.php?s=$1 [L,NC]
RewriteRule ^ruya-tabiri template/dreams.php [NC]
RewriteRule ^ruyada-(.*)-gormek/([0-9]+)/$ template/dreams-detail.php?Id=$2 [L]
RewriteRule ^kose-yazarlari template/all-authors.php$1 [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/([0-9]+) template/news-detail.php?Id=$2 [NC,L]
RewriteRule ^news/([0-9]+)/(.*).html template/news-detail.php?Id=$1 [NC,L]
RewriteRule ^news/([0-9]+)/(.*).html template/news-detail.php?Id=$1 [NC,L]
RewriteRule ^(.*)/(.*)-([0-9]+).html template/news-detail.php?Id=$3 [NC,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/ template/newscategory.php?Id=$1 [NC]
ExpiresActive On
ExpiresByType image/jpg "access 1 year"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType image/gif "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType text/css "access 1 month"
ExpiresByType application/pdf "access 1 month"
ExpiresByType text/x-javascript "access 1 month"
ExpiresByType application/x-shockwave-flash "access 1 month"
ExpiresByType image/x-icon "access 1 year"
ExpiresDefault "access 2 days"
Header set Connection keep-alive
FileETag MTime Size
Header unset ETag
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.*
AddType application/javascript js
AddType application/vnd.ms-fontobject eot
AddType application/x-font-ttf ttf ttc
AddType font/opentype otf
AddType application/x-font-woff woff
AddType application/x-font-woff woff2
AddType image/svg+xml svg svgz
AddEncoding gzip svgz
# -----------------------------------------------------------------------
# Compressing output.
# -----------------------------------------------------------------------
SetOutputFilter DEFLATE
# Compress HTML, C
# Remove browser bugs (only needed for really old browsers)
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
Header append Vary User-Agent
# mod_headers, y u no match by Content-Type?!
SetEnvIf Origin ":" IS_CORS
Header set Access-Control-Allow-Origin "*" env=IS_CORS
Header set Access-Control-Allow-Origin "*"