• 19-08-2019, 19:06:51
    #1
    Merhaba arkadaşlar
    ufak bi sorunum vardı,söyle örnekle acıklayayım,
    mesela ftp den siteme r10.html diye bir dosya attım
    bunu https://www.sitem.net/r10.html diye çağırdığın zaman acılmıyor direk ana sayfaya gidiyor ( yukarda site adresimi verdim kontrol edilebilir sorun cözümünden sonra silinecek )
    buda sorunda beni sıkıntıya sokuyor mesela google search console site sahipliliğini dogrulama için verilen dosyayı ftp yuklediğimde sonuc alamıyor doğrulanamıyor..

    Sorunun htaccess den oldugunu düşünüyorum cünkü htaccess kaldırdığımda sorun kalkıyor...
    kullandığım htaccess
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule ^blog$ np-blog.php
    ## for sef
    RewriteRule ^([_A-Za-z0-9-]+).html$ np-game.php?o=$1 [L]
    RewriteRule ^([_A-Za-z0-9-]+)$ np-category.php?c=$1 [L]
    RewriteRule ^([_A-Za-z0-9-]+)/([0-9]+)$ np-category.php?c=$1&page=$2 [L]
    RewriteRule ^blog/([_A-Za-z0-9-]+)$ np-blog.php?sef=$1 [L]
    RewriteRule ^u/([_A-Za-z0-9-]+)$ np-profile.php?sef=$1 [L]
    RewriteRule ^([_A-Za-z0-9-]+)/([_A-Za-z0-9-]+)/([0-9]+)$ np-other.php?sef=$2&page=$3 [L]
    RewriteRule ^([_A-Za-z0-9-]+)/([_A-Za-z0-9-]+)$ np-other.php?sef=$2 [L]
    RewriteRule ^t/([_A-Za-z0-9-]+).html$ search.php?tags=$1 [L]
    RewriteRule ^p/([0-9]+).html$ np-game-play.php?i=$1 [L]
    ## for id
    RewriteRule ^([0-9]+)-([_A-Za-z0-9-]+).html$ np-game.php?o=$2 [L]
    RewriteRule ^([0-9]+)-([_A-Za-z0-9-]+)$ np-category.php?c=$2 [L]
    RewriteRule ^([0-9]+)-([_A-Za-z0-9-]+)/([0-9]+)$ np-category.php?c=$2&page=$3 [L]
    RewriteRule ^blog/([0-9]+)-([_A-Za-z0-9-]+)$ np-blog.php?sef=$2 [L]
    RewriteRule ^oyna/([0-9]+).html$ oyun.php?oyna=$1 [L]
    RewriteRule ^sitemap.xml$ sitemap.php
    RewriteRule ^rss.xml$ rss.php
    RewriteRule ^404.shtml$ np-script.php?s404
    RewriteRule ^robots.txt$ np-script.php?robots
    RewriteRule ^robot.txt$ np-script.php?robots
    AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript text/javascript
    
    </IfModule>
    Yardımcı olacak arkadaş varmı acaba.
  • 19-08-2019, 19:23:49
    #2
    ...
    ## for sef
    RewriteRule ^([_A-Za-z0-9-]+).html$ np-game.php?o=$1 [L]
    ...

    normalde https://www.loyun.net/np-game.php?o=...leri-birlestir olan link yapısı htaccess ile https://www.loyun.net/merge-jewels-m...birlestir.html yapısına dönüştürülmüş

    https://www.loyun.net/np-game.php?o=xxxx adresine giderseniz oyun bulunamadığı için anasayfaya yönlendiriyor. yani .html uzantılı bir dosya attığınız zaman anasayfaya yönlendirmesinin sebebi bu.

    yapıyı https://www.loyun.net/oyun/merge-jewels-mucevherleri-birlestir.html olarak değiştirebilirsiniz veya doğrulama için html etiketi yöntemini kullanın
  • 19-08-2019, 21:33:13
    #3
    Tesekkür ederim yardımın için yanlız yapamadım, etiket yöntemi ile onaylayayım en iyisi