Merhaba arkadaşlar yabancı bir script buldum ve ben bunu editledim bir sorunum kaldı sorun şu
bir adet categories.php dosyası var ben bunun adını kategoriler.php olarak degiştirdim ama hata alıyorum bunun sorunu nerede acaba htacces düzenlemesinide yaptim kodlar şu sekilde bakın
orjinal kod
<?php
$start = $start + $perpage;
if($start > $perpage) {
$start2 = $start - ($perpage * 2);
if($start2 < 0) $start2 = 0;
echo "<a href=\"kategoriler".str_replace(" ", "-", $cat)."_"."page-".$start2.".php\">< <b>Previous Page</b></a> ";
}
if($start < $total) echo " <a href=\"jokes_".str_replace(" ", "-", $cat)."_"."page-".$start.".php\"><b>Next Page</b> ></a>";
?></div><br><br>
<?php
}
else {
$ptitle = "Category Listing";
$meta_keys = "jokes, funny, laugher, joke, gag, laughing";
$meta_desc = "Category Listing";
$selected = "CATEGORIES";
include("header.php");
$cats = mysql_query("SELECT * FROM categories ORDER BY category");
?>htacces kodu
Options +FollowSymlinks
RewriteEngine On
RewriteRule ^index.html(.*)$ index.php [L]
RewriteRule ^([0-9]+)-(.*).html$ kategori.php?kat=$1 [L]
RewriteRule ^(.*)/([0-9]+)-(.*)$ bak.php?id=$2 [L]
RewriteRule ^alfabe-(.*)_sayfa-(.*).php$ alfabe.php?let=$1&start=$2 [QSA]
RewriteRule ^jokes_(.*)_page-(.*).php$ categories.php?cat=$1&start=$2 [QSA]
RewriteRule ^jokes_(.*).php$ categories.php?cat=$1 [QSA]
RewriteRule ^oku-(.*)-(.*).php$ okuyalim.php?j=$1 [QSA]
benim editledigim kod
<?php
$start = $start + $perpage;
if($start > $perpage) {
$start2 = $start - ($perpage * 2);
if($start2 < 0) $start2 = 0;
echo "<a href=\"kategoriler".str_replace(" ", "-", $cat)."_"."page-".$start2.".php\">< <b>Previous Page</b></a> ";
}
if($start < $total) echo " <a href=\"kategoriler_".str_replace(" ", "-", $cat)."_"."page-".$start.".php\"><b>Next Page</b> ></a>";
?></div><br><br>
<?php
}
else {
$ptitle = "Category Listing";
$meta_keys = "jokes, funny, laugher, joke, gag, laughing";
$meta_desc = "Category Listing";
$selected = "CATEGORIES";
include("header.php");
$cats = mysql_query("SELECT * FROM categories ORDER BY category");
?>
benim editledigim htacces dosyası
Options +FollowSymlinks
RewriteEngine On
RewriteRule ^index.html(.*)$ index.php [L]
RewriteRule ^([0-9]+)-(.*).html$ kategori.php?kat=$1 [L]
RewriteRule ^(.*)/([0-9]+)-(.*)$ bak.php?id=$2 [L]
RewriteRule ^alfabe-(.*)_sayfa-(.*).php$ alfabe.php?let=$1&start=$2 [QSA]
RewriteRule ^kategoriler_(.*)_page-(.*).php$ kategoriler.php?cat=$1&start=$2 [QSA]
RewriteRule ^kategoriler_(.*).php$ kategoriler.php?cat=$1 [QSA]
RewriteRule ^oku-(.*)-(.*).php$ okuyalim.php?j=$1 [QSA]
Bunun neresinde yanlış yapiyorum arkadaşlar
Birde şu soun var mesela
www.siteismi.com/r10bilgileri.php r10bilgileri
kategorisindeki konuları gösteriyor
ama kategori ismi ayrı yazıldıgından
www.siteismi.com/r10 bilgileri.php olarak geciyor ve icindeki konulari göstermiyor bunun cözümü nedir