• 11-02-2022, 15:13:00
    #1
    [Fri Feb 11 15:09:15.510227 2022] [rewrite:warn] [pid 8944:tid 139768536938240] AH00665: RewriteCond: NoCase option for non-regex pattern '-f' is not supported and will be ignored. (/var/www/vhosts/abdullahacar.com.tr/httpdocs/.htaccess:29)
    Log 'da Yukarıdaki eror alıyorum.

    .htaccess 'den
    Options +FollowSymlinks
    bu olmak zorunda, kod olduğu zaman yukarıdaki hata alıyorum. Olmayınca da index 'de
    prepare(" REPLACE INTO lang SET language = :language, hash = :hash, description = :description"); $sorgu->execute(array( "language"=> $language, "hash"=> $hash, "description"=> $value )); } function cevir( $tablo,$kayit,$language){ global $dbh; $id=$kayit["id"]; foreach($kayit as $hucreanahtar=>$hucreveri){ $hash=dilhash($language,$tablo,$hucreanahtar,$id); $sorgu = $dbh->prepare("SELECT * FROM lang Where hash=:id"); $sorgu->execute(array( "id"=> $hash )); $sonuc = $sorgu->fetch(); if(isset($sonuc["description"])){ $kayit[$hucreanahtar]=$sonuc["description"]; } } return $kayit; }prepare($sql); $f ->execute(); $_SESSION["current_page"] = $current_page; } } } else { //set a session variable so we know that this visitor is being tracked //insert a new row into the database for this person $sql = "INSERT INTO visitor_tracking (ip_address, page_name, query_string) VALUES ('$ip_address', '$page_name', '$query_string')"; $f = $dbh->prepare($sql); $f ->execute(); //find the next available visitor_id for the database //to assign to this person $_SESSION["tracking"] = true; $entry_id = $dbh->lastInsertId(); $lowest_sql = ($dbh->prepare("SELECT MAX(visitor_id) as next FROM visitor_tracking")); $lowest_sql->execute(); $lowest_sql = $lowest_sql->fetch(PDO::FETCH_ASSOC); $lowest = $lowest_sql["next"]; if(!isset($lowest)) $lowest = 1; else $lowest++; //update the visitor entry with the new visitor id //Note, that we do it in this way to prevent a "race condition" ($dbh->prepare("UPDATE visitor_tracking SET visitor_id = '$lowest' WHERE entry_id = '$entry_id'"))->execute(); //place the current visitor_id into the session so we can use it on //subsequent visits to track this person $_SESSION["visitor_id"] = $lowest; //save the current page to session so we don't track if someone just refreshes the page $_SESSION["current_page"] = $current_page; }
    böyle bir hata geliyor
  • 11-02-2022, 15:23:36
    #2
    Symbolic adlı üyeden alıntı: mesajı görüntüle
    [Fri Feb 11 15:09:15.510227 2022] [rewrite:warn] [pid 8944:tid 139768536938240] AH00665: RewriteCond: NoCase option for non-regex pattern '-f' is not supported and will be ignored. (/var/www/vhosts/abdullahacar.com.tr/httpdocs/.htaccess:29)
    Log 'da Yukarıdaki eror alıyorum.

    .htaccess 'den
    Options +FollowSymlinks
    bu olmak zorunda, kod olduğu zaman yukarıdaki hata alıyorum. Olmayınca da index 'de
    prepare(" REPLACE INTO lang SET language = :language, hash = :hash, description = :description"); $sorgu->execute(array( "language"=> $language, "hash"=> $hash, "description"=> $value )); } function cevir( $tablo,$kayit,$language){ global $dbh; $id=$kayit["id"]; foreach($kayit as $hucreanahtar=>$hucreveri){ $hash=dilhash($language,$tablo,$hucreanahtar,$id); $sorgu = $dbh->prepare("SELECT * FROM lang Where hash=:id"); $sorgu->execute(array( "id"=> $hash )); $sonuc = $sorgu->fetch(); if(isset($sonuc["description"])){ $kayit[$hucreanahtar]=$sonuc["description"]; } } return $kayit; }prepare($sql); $f ->execute(); $_SESSION["current_page"] = $current_page; } } } else { //set a session variable so we know that this visitor is being tracked //insert a new row into the database for this person $sql = "INSERT INTO visitor_tracking (ip_address, page_name, query_string) VALUES ('$ip_address', '$page_name', '$query_string')"; $f = $dbh->prepare($sql); $f ->execute(); //find the next available visitor_id for the database //to assign to this person $_SESSION["tracking"] = true; $entry_id = $dbh->lastInsertId(); $lowest_sql = ($dbh->prepare("SELECT MAX(visitor_id) as next FROM visitor_tracking")); $lowest_sql->execute(); $lowest_sql = $lowest_sql->fetch(PDO::FETCH_ASSOC); $lowest = $lowest_sql["next"]; if(!isset($lowest)) $lowest = 1; else $lowest++; //update the visitor entry with the new visitor id //Note, that we do it in this way to prevent a "race condition" ($dbh->prepare("UPDATE visitor_tracking SET visitor_id = '$lowest' WHERE entry_id = '$entry_id'"))->execute(); //place the current visitor_id into the session so we can use it on //subsequent visits to track this person $_SESSION["visitor_id"] = $lowest; //save the current page to session so we don't track if someone just refreshes the page $_SESSION["current_page"] = $current_page; }
    böyle bir hata geliyor
    Çözümü, .htaccess içindeki kod ve dosya dizini yapısına göre düzenlemeler yapmak hocam; işaret ettiği noktalar belli ve sorun çözülebilir.
  • 11-02-2022, 15:26:48
    #3
    yalinyalniz adlı üyeden alıntı: mesajı görüntüle
    Çözümü, .htaccess içindeki kod ve dosya dizini yapısına göre düzenlemeler yapmak hocam; işaret ettiği noktalar belli ve sorun çözülebilir.
    .htaccess 'in içeriği
    cpanel de sorunsuz çalışıyor site.
    plesk de çalışmıyor...

    Options +FollowSymLinks
    
    
    RewriteEngine On
    RewriteRule ^anasayfa.*$ index.php [NC] 
    RewriteRule ^fiyat-teklifi.*$ fiyat-teklif.php [NC]
    RewriteRule ^blog.*$ blog.php [NC]
    RewriteRule ^hakkimizda.*$ hakkimizda.php [NC]
    RewriteRule ^hizmetlerimiz.*$ hizmet.php [NC]
    RewriteRule ^bize-ulasin.*$ iletisim.php [NC]  
    RewriteRule ^calismalarimiz.*$ calisma.php [NC]  
    RewriteRule ^urunlerimiz/([0-9a-zA-Z-_]+)$ urunler.php?kat=$1 [L,QSA]
    RewriteRule ^urunlerimiz.*$ urunler.php [NC]
     
    
    RewriteRule ^hizmet/([0-9a-zA-Z-_]+)$ hizmetdetay.php?sayfa=servicesname&id=$1 [L,QSA]
    RewriteRule ^proje/([0-9a-zA-Z-_]+)$ projedetay.php?sayfa=project_name&id=$1 [L,QSA]
    RewriteRule ^yazi/([0-9a-zA-Z-_]+)$ blogdetay.php?sayfa=news_name&id=$1 [L,QSA]
    RewriteRule ^urun/([0-9a-zA-Z-_]+)$ urundetay.php?sayfa=product_name&id=$1 [L,QSA]
    
    RewriteCond %{SERVER_PORT} 80
    RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$
    RewriteCond %{REQUEST_URI} !^/\.well-known/cpanel-dcv/[0-9a-zA-Z_-]+$
    RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/(?:\ Ballot169)?
    RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Sectigo\ DCV)?$
    RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
    
    
    
    RewriteCond %{REQUEST_FILENAME} !-d [NC]
    RewriteCond %{REQUEST_FILENAME} !-f [NC]
  • 11-02-2022, 15:29:32
    #4
    Symbolic adlı üyeden alıntı: mesajı görüntüle
    .htaccess 'in içeriği
    cpanel de sorunsuz çalışıyor site.
    plesk de çalışmıyor...

    Options +FollowSymLinks
    
    
    RewriteEngine On
    RewriteRule ^anasayfa.*$ index.php [NC] 
    RewriteRule ^fiyat-teklifi.*$ fiyat-teklif.php [NC]
    RewriteRule ^blog.*$ blog.php [NC]
    RewriteRule ^hakkimizda.*$ hakkimizda.php [NC]
    RewriteRule ^hizmetlerimiz.*$ hizmet.php [NC]
    RewriteRule ^bize-ulasin.*$ iletisim.php [NC]  
    RewriteRule ^calismalarimiz.*$ calisma.php [NC]  
    RewriteRule ^urunlerimiz/([0-9a-zA-Z-_]+)$ urunler.php?kat=$1 [L,QSA]
    RewriteRule ^urunlerimiz.*$ urunler.php [NC]
     
    
    RewriteRule ^hizmet/([0-9a-zA-Z-_]+)$ hizmetdetay.php?sayfa=servicesname&id=$1 [L,QSA]
    RewriteRule ^proje/([0-9a-zA-Z-_]+)$ projedetay.php?sayfa=project_name&id=$1 [L,QSA]
    RewriteRule ^yazi/([0-9a-zA-Z-_]+)$ blogdetay.php?sayfa=news_name&id=$1 [L,QSA]
    RewriteRule ^urun/([0-9a-zA-Z-_]+)$ urundetay.php?sayfa=product_name&id=$1 [L,QSA]
    
    RewriteCond %{SERVER_PORT} 80
    RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$
    RewriteCond %{REQUEST_URI} !^/\.well-known/cpanel-dcv/[0-9a-zA-Z_-]+$
    RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/(?:\ Ballot169)?
    RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Sectigo\ DCV)?$
    RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
    
    
    
    RewriteCond %{REQUEST_FILENAME} !-d [NC]
    RewriteCond %{REQUEST_FILENAME} !-f [NC]
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f

    Bu şekilde düzenleyin deneyin hocam, eğer çalışırsa çözüm genel olarak basit olacaktır eğer çalışmazsa detaylı bir kontrol gerekebilir.

    WHM ile Plesk birebir aynı Apache'yi kullanmıyor, ikisinin Apache sürümleri de farklı derleme olarak.
  • 11-02-2022, 15:37:56
    #5
    yalinyalniz adlı üyeden alıntı: mesajı görüntüle
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f

    Bu şekilde düzenleyin deneyin hocam, eğer çalışırsa çözüm genel olarak basit olacaktır eğer çalışmazsa detaylı bir kontrol gerekebilir.

    WHM ile Plesk birebir aynı Apache'yi kullanmıyor, ikisinin Apache sürümleri de farklı derleme olarak.
    Hocam olmuyor... VDS 'im var kullanamıyorum
    Şaka gibi. 3 sitede bu scripti kullanıcam ama çalışmıyor.
    Çok teşekkür ederim ilginiz için...
  • 11-02-2022, 15:42:15
    #6
    Symbolic adlı üyeden alıntı: mesajı görüntüle
    Hocam olmuyor... VDS 'im var kullanamıyorum
    Şaka gibi. 3 sitede bu scripti kullanıcam ama çalışmıyor.
    Çok teşekkür ederim ilginiz için...
    Detaylı bir incelemeyle hangi bölümde problem olduğunu bulup çözmek mümkün hocam ama bu konuda ücretsiz yardımcı olamıyorum; eğer şüphelendiğiniz değişkenler-modüller-ayarlar varsa buradan yazıp sorabilirsiniz, yanıtlarım.
  • 11-02-2022, 15:45:43
    #7
    yalinyalniz adlı üyeden alıntı: mesajı görüntüle
    Detaylı bir incelemeyle hangi bölümde problem olduğunu bulup çözmek mümkün hocam ama bu konuda ücretsiz yardımcı olamıyorum; eğer şüphelendiğiniz değişkenler-modüller-ayarlar varsa buradan yazıp sorabilirsiniz, yanıtlarım.
    Anladım hocam en mantıklısı pleskten kurutlup cpanel 'e geçmek
  • 13-02-2022, 18:59:46
    #8
    Symbolic adlı üyeden alıntı: mesajı görüntüle
    [Fri Feb 11 15:09:15.510227 2022] [rewrite:warn] [pid 8944:tid 139768536938240] AH00665: RewriteCond: NoCase option for non-regex pattern '-f' is not supported and will be ignored. (/var/www/vhosts/abdullahacar.com.tr/httpdocs/.htaccess:29)
    Log 'da Yukarıdaki eror alıyorum.

    .htaccess 'den
    Options +FollowSymlinks
    bu olmak zorunda, kod olduğu zaman yukarıdaki hata alıyorum. Olmayınca da index 'de
    prepare(" REPLACE INTO lang SET language = :language, hash = :hash, description = :description"); $sorgu->execute(array( "language"=> $language, "hash"=> $hash, "description"=> $value )); } function cevir( $tablo,$kayit,$language){ global $dbh; $id=$kayit["id"]; foreach($kayit as $hucreanahtar=>$hucreveri){ $hash=dilhash($language,$tablo,$hucreanahtar,$id); $sorgu = $dbh->prepare("SELECT * FROM lang Where hash=:id"); $sorgu->execute(array( "id"=> $hash )); $sonuc = $sorgu->fetch(); if(isset($sonuc["description"])){ $kayit[$hucreanahtar]=$sonuc["description"]; } } return $kayit; }prepare($sql); $f ->execute(); $_SESSION["current_page"] = $current_page; } } } else { //set a session variable so we know that this visitor is being tracked //insert a new row into the database for this person $sql = "INSERT INTO visitor_tracking (ip_address, page_name, query_string) VALUES ('$ip_address', '$page_name', '$query_string')"; $f = $dbh->prepare($sql); $f ->execute(); //find the next available visitor_id for the database //to assign to this person $_SESSION["tracking"] = true; $entry_id = $dbh->lastInsertId(); $lowest_sql = ($dbh->prepare("SELECT MAX(visitor_id) as next FROM visitor_tracking")); $lowest_sql->execute(); $lowest_sql = $lowest_sql->fetch(PDO::FETCH_ASSOC); $lowest = $lowest_sql["next"]; if(!isset($lowest)) $lowest = 1; else $lowest++; //update the visitor entry with the new visitor id //Note, that we do it in this way to prevent a "race condition" ($dbh->prepare("UPDATE visitor_tracking SET visitor_id = '$lowest' WHERE entry_id = '$entry_id'"))->execute(); //place the current visitor_id into the session so we can use it on //subsequent visits to track this person $_SESSION["visitor_id"] = $lowest; //save the current page to session so we don't track if someone just refreshes the page $_SESSION["current_page"] = $current_page; }
    böyle bir hata geliyor
    Merhaba,

    Özelden sunucu bilgilerini ve site adını iletin bakalım isterseniz
  • 13-02-2022, 19:26:04
    #9
    @ilgihost; Hocam sunucudan halletti. Ücret talebinde bile bulunmadı.
    Sırf bunun için reseller alacaktım.
    Eline yüreğine sağlık