• 16-02-2018, 19:37:32
    #1
    Selam arkadaşlar, elimde şöyle bir kod var ;

    <IfModule mod_rewrite.c>
    Options +FollowSymLinks
    RewriteEngine On
    RewriteCond %{HTTP_REFERER} !^https?://(www\.)?r10\.net(.*) [NC]
    RewriteCond %{HTTP_REFERER} !^https?://(www\.)?google\.com(.*) [NC]
    RewriteCond %{HTTP_REFERER} !^https?://(www\.)?google\.com.tr(.*) [NC]
    RewriteCond %{HTTP_REFERER} !^https?://(www\.)?google\.de(.*) [NC]
    RewriteCond %{HTTP_REFERER} !^https?://(www\.)?bing\.com(.*) [NC]
    RewriteCond %{HTTP_REFERER} !^https?://(www\.)?yandex\.com(.*) [NC]
    RewriteCond %{HTTP_USER_AGENT} !(googlebot|bingbot|yandex) [NC]
    RewriteRule ^.*$ giris1.php [L]
    </IfModule>

    bütün sayfalarda giris1.php dosyasına yönlendiriyor, benim istediğim şey şu sitede sadece index.php dosyasına direkt giriş yapıldığında giris1.php ye yönlendirsin diğer sayfalar bu koddan etkilenmesin.

    Yardımlarınız için teşekkür ederim.
  • 16-02-2018, 19:50:09
    #2
    hocam panel gibi bir şey mi yapıyorsunuz giriş yapmadan sisteme giremeyecek öyle bi şi mi
  • 16-02-2018, 19:51:27
    #3
    hubmedya adlı üyeden alıntı: mesajı görüntüle
    hocam panel gibi bir şey mi yapıyorsunuz giriş yapmadan sisteme giremeyecek öyle bi şi mi
    Mantık şu hocam google'dan gelen ziyaretçiler sorunsuz şekilde geçiyor sayfalara ama siteye direkt tarayıcıdan girenlere giris1.php dosyasını gösteriyor. Ben sadece tek bir sayfada direkt girişte giris1.php içeriğini açsın istiyorum mevzu budur.
  • 16-02-2018, 19:58:50
    #4
    tam yapmak istediğiniz olayı anlamadım ama sanırım böyle birşey istiyorsunuz.

    <IfModule mod_rewrite.c>
    Options +FollowSymLinks
    RewriteEngine On
    RewriteCond %{HTTP_REFERER} !^https?://(www\.)?r10\.net(.*) [NC]
    RewriteCond %{HTTP_REFERER} !^https?://(www\.)?google\.com(.*) [NC]
    RewriteCond %{HTTP_REFERER} !^https?://(www\.)?google\.com.tr(.*) [NC]
    RewriteCond %{HTTP_REFERER} !^https?://(www\.)?google\.de(.*) [NC]
    RewriteCond %{HTTP_REFERER} !^https?://(www\.)?bing\.com(.*) [NC]
    RewriteCond %{HTTP_REFERER} !^https?://(www\.)?yandex\.com(.*) [NC]
    RewriteCond %{HTTP_USER_AGENT} !(googlebot|bingbot|yandex) [NC]
    RewriteRule ^index.php$ giris1.php [L]
    </IfModule>