• 14-04-2013, 01:11:18
    #1
    SetOutputFilter DEFLATE
    AddOutputFilterByType DEFLATE application/javascript
    AddOutputFilterByType DEFLATE text/css

    <ifModule mod_gzip.c>
    mod_gzip_on Yes
    mod_gzip_dechunk Yes
    mod_gzip_item_exclude file .css$
    mod_gzip_item_exclude file .gif$
    mod_gzip_item_exclude file .swf$
    mod_gzip_item_exclude mime ^image/.*
    mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
    </ifModule>


    # Set up caching on media files for 1 week
    <FilesMatch "\.(gif|png)$">
    ExpiresActive on
    ExpiresDefault A604800
    Header append Cache-Control "public"
    </FilesMatch>

    # Set up 2 Hour caching on commonly updated files
    <FilesMatch "\.(js|css)$">
    ExpiresActive on
    ExpiresDefault A604800
    Header append Cache-Control "proxy-revalidate"
    </FilesMatch>

    # Set up 2 Hour caching on commonly updated files
    <FilesMatch "\.(jpg)$">
    ExpiresActive on
    ExpiresDefault A300
    Header append Cache-Control "proxy-revalidate"
    </FilesMatch>

    # Force no caching for dynamic files
    <FilesMatch "\.(php|cgi|pl|html)$">
    ExpiresActive Off
    Header set Cache-Control "private, no-cache, no-store, proxy-revalidate, no-transform"
    Header set Pragma "no-cache"
    </FilesMatch>

    Options -Indexes
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d

    ErrorDocument 400 /404.php
    ErrorDocument 401 /404.php
    ErrorDocument 403 /404.php
    ErrorDocument 404 /404.php
    ErrorDocument 500 /404.php

    RewriteRule ^404.jpg$ /404.jpg [L]

    RewriteRule ^rotator.xml$ /templates/temp_1/flash/rotator.php [L]
    RewriteRule ^rotator2.xml$ /templates/temp_2/flash/rotator.php [L]
    RewriteRule ^Anasayfa$ /index.php [L]
    RewriteRule ^Arama-.*-([0-9a-z]+)\.html$ /index.php?product_id=$1
    RewriteRule ^DetayArama$ /detail_search.php [L]
    RewriteRule ^AramaSonuclari$ /results.php [L]
    RewriteRule ^Kurumsal$ /about_us.php [L]
    RewriteRule ^EmlakTalep$ /add_talep.php [L]
    RewriteRule ^Iletisim$ /contact.php [L]
    RewriteRule ^Bilgiler.*-([0-9a-z]+)\.html$ /user_pages.php?page_id=$1
    RewriteRule ^sitemap.xml$ /sitemap.php [L]

    RewriteRule ^.*-([0-9a-z]+)\.html$ /details.php?detay_id=$1 [L]


    Yukarıdaki htaccess dosyasındaki satırlarda linke tıkladıgımda sonuc vermiyor 404 hatası alıyorum
  • 14-04-2013, 01:34:59
    #2
    Üyeliği durduruldu
    kodlar ?
  • 15-04-2013, 17:43:13
    #3
    yardımcı olacak arkadas yokmu acaba ? 404 hatası veriyor
  • 16-04-2013, 12:10:38
    #4
    bazı sunucularda çalışan htaccess diğerlerinde çalışmayabiliyor.kodlarada baktım.gözden kaçırdığım birşey yoksa hatalı kodda yok.istersen hocam kodlarını parça parça sil htaccess ten .hangi kısımı silinince sistem düzgün çalışmaya başlayacak böyle bir tespit yapıp füzenleme yapabilirsin.
  • 16-04-2013, 21:40:42
    #5
    localdede calısmıyo htaccess ayarlarını yapmama ragmen