arkadaşlar ben download sitemde adı ile sorgulama yapılıyor ben adı yanına id eklemek istiyorum önce .htaccess dosyasına
RewriteRule Program/(.*)-(.*).html$ detay.php?adi_s=$1&id=$2 [L,NC]
ekledim .htaccess aşağıdadır hata yapmış olabilirim
Options +FollowSymlinks
RewriteEngine On
RewriteRule Program/(.*)-(.*).html$ detay.php?adi_s=$1&id=$2 [L,NC]
RewriteRule ^$ index.php [L]
RewriteRule ^/index.php$ index.php [L]
RewriteRule ^/$ index.php [L]
RewriteRule ^index.html$ index.php [L]
RewriteRule ^Haberler.html$ haberler.php [L]
RewriteRule ^Iletisim.html$ iletisim.php [L]
RewriteRule kategori/(.*)/(.*)-([0-9]+).html$ kat.php?tur=altkat&kat=$2&page=$3 [L]
RewriteRule kategori/(.*)/(.*).html$ kat.php?tur=altkat&kat=$2&page=1 [L]
RewriteRule kategori/(.*)-([0-9]+).html$ kat.php?tur=kat&kat=$1&page=$2 [L]
RewriteRule kategori/(.*).html$ kat.php?tur=kat&kat=$1&page=1 [L]
RewriteRule En_Yeniler-([0-9]+).html$ en.php?tur=En_Yeni&turx=tarih&page=$1&link=En_Yeniler [L]
RewriteRule En_Iyiler-([0-9]+).html$ en.php?tur=En_İyi&turx=hit&page=$1&link=En_Iyiler [L]
RewriteRule En_Yeniler.html$ en.php?tur=En_Yeni&turx=tarih&page=1&link=En_Yeniler [L]
RewriteRule En_Iyiler.html$ en.php?tur=En_İyi&turx=hit&page=1&link=En_Iyiler [L]
RewriteRule sonaranan-([0-9]+).html$ sonaranan.php?tur=sonaranan&turx=hit&page=$1&link=sonaranan [L]
RewriteRule sonaranan.html$ sonaranan.php?tur=sonaranan&turx=tarih&page=1&link=sonaranan [L]
RewriteRule sonaranan.html$ sonaranan.php?tur=sonaranan&turx=hit&page=1&link=sonaranan [L]
RewriteRule encokaranan-([0-9]+).html$ encokaranan.php?tur=encokaranan&turx=hit&page=$1&link=encokaranan [L]
RewriteRule encokaranan.html$ encokaranan.php?tur=encokaranan&turx=tarih&page=1&link=encokaranan [L]
RewriteRule encokaranan.html$ encokaranan.php?tur=encokaranan&turx=hit&page=1&link=encokaranan [L]
RewriteRule guncellenen-([0-9]+).html$ guncellenen.php?tur=guncellenen&turx=hit&page=$1&link=guncellenen [L]
RewriteRule guncellenen.html$ guncellenen.php?tur=guncellenen&turx=tarih&page=1&link=guncellenen [L]
RewriteRule guncellenen.html$ guncellenen.php?tur=guncellenen&turx=hit&page=1&link=guncellenen [L]
RewriteRule Turkce_Arsiv-([0-9]+).html$ dilarsiv.php?tur=Türkçe&page=$1&link=Turkce_Arsiv [L]
RewriteRule Yabanci_Arsiv-([0-9]+).html$ dilarsiv.php?tur=İngilizce&page=$1&link=Yabanci_Arsiv [L]
RewriteRule Turkce_Arsiv.html$ dilarsiv.php?tur=Türkçe&page=1&link=Turkce_Arsiv [L]
RewriteRule Yabanci_Arsiv.html$ dilarsiv.php?tur=İngilizce&page=1&link=Yabanci_Arsiv [L]
RewriteRule Haber/(.*).html$ haberdetay.php?id=$1 [L]
RewriteRule Program/(.*).html$ detay.php?id=$1 [L]
RewriteRule download/(.*).html$ indir.php?id=$1 [L]
RewriteRule kirik-link/(.*).html$ kiriklink.php?id=$1 [L]
Daha sonra detay php sorgulaması aşağıda gibidir
<?
$id = $_GET['id'];
$r=mysql_fetch_array(mysql_query("Select * from program where adi_s = '$id'"));
$s=mysql_fetch_array(mysql_query("Select * from kategori where id = '$r[kategori]'"));
?>birde aşağıdaki sorgulama var
<?$id = $_GET['id'];
$r=mysql_fetch_array(mysql_query("Select * from program where adi_s = '$id'"));ben sadece
$r=mysql_fetch_array(mysql_query("Select * from program where adi_s = '$id'"));satırını
$r=mysql_fetch_array(mysql_query("Select * from program where adi_s='".$_GET['adi_s']."' and id='".$_GET['id']."'");olarak değiştim ama hata verdi ne yapmam gerekiyor başka nereleri değişmeliyim