.htaccess kodlarım :
RewriteEngine on
RewriteBase /
ErrorDocument 404 http://www.oyunforumu.net/404.html
RewriteCond %{THE_REQUEST} \?(ref=.*)?\ HTTP [NC]
RewriteRule .? http://www.oyunforumu.net%{REQUEST_URI}? [R=301,L]
RewriteRule ^oyun-oyna/([0-9]+)/([_A-Za-z0-9-]+).html index.php?action=file&fileid=$1 [L]
RewriteRule ^oyun-kategori/([0-9]+)/([_A-Za-z0-9-]+).html index.php?action=browse&cid=$1 [L]
RewriteRule ^oyun-kategori/([0-9]+)/([_A-Za-z0-9-]+)/([0-9]+).html index.php?action=browse&cid=$1&page=$3 [L]
RewriteRule ^oyna/(.*).html index.php?action=search&t=$1 [L]
RewriteRule ^uye-profili/([0-9]+)/([_A-Za-z0-9-]+).html index.php?action=profile&uid=$1 [L]
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://www.oyunforumu.net/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://oyunforumu.net/.*$ [NC]
#php_value zlib.output_compression 16386
RewriteRule .*\.(jpg|swf|png|gif|mid|jpeg|html|bmp)$ http://www.oyunforumu.net [R,NC]Etiket için fonksiyon kodlarım : function araz2($sadi) {
$sadi = strtr($sadi, "I", "ii");
$sadi = str_replace("ğ","g",$sadi);
$sadi = str_replace(" ","-",$sadi);
$sadi = str_replace("","a",$sadi);
$sadi = str_replace("","s",$sadi);
$sadi = str_replace("","ss",$sadi);
$sadi = str_replace("ğ","g",$sadi);
$sadi = str_replace("","s",$sadi);
$sadi = str_replace("ı","i",$sadi);
$sadi = str_replace("ı","i",$sadi);
$sadi = str_replace("ö","o",$sadi);
$sadi = str_replace("ö","o",$sadi);
$sadi = str_replace("ü","u",$sadi);
$sadi = str_replace("ü","u",$sadi);
$sadi = str_replace("ç","c",$sadi);
$sadi = str_replace("ç","c",$sadi);
$sadi = str_replace("_","-",$sadi);
$sadi = str_replace(" ","-",$sadi);
$sadi = str_replace("--","-",$sadi);
$sadi = str_replace("--","-",$sadi);
$sadi = str_replace("--","-",$sadi);
$sadi = trim($sadi);
$sadi = ereg_replace("[^A-Za-z0-9.-]", '', $sadi);
$sadi = str_replace("-"," ",$sadi);
return strtolower($sadi);
}
function aramagoster($pussy=20) {
$armut=mysql_query("select kelime from arananlar order by kno DESC limit 0,".$pussy);
while ($ayi=mysql_fetch_array($armut)) {
if ($ayi[kelime]!=''){
$kamil=$ayi[kelime];
if (strlen($ayi[kelime])>20) $kamil=substr($ayi[kelime],0,20)."...";
echo '<a title="'.$kamil=substr($ayi[kelime],0,40).'" href = "/oyna/'.make_url_friendly($ayi[kelime]).'.html" target="_self">'.$kamil.'</a><br />';
}
}
}
function make_url_friendly($url)
{
$url = trim($url);
$url = strtolower($url);
$find = array('<b>', '</b>');
$url = str_replace ($find, '', $url);
$url = preg_replace('/<(\/{0,1})img(.*?)(\/{0,1})\>/', 'image', $url);
$find = array(' ', '"', '&', '&', '\r\n', '\n', '/', '\\', '+', '<', '>');
$url = str_replace ($find, '-', $url);
$find = array('', '', '', '', '', '', '', '');
$url = str_replace ($find, 'e', $url);
$find = array('', '', '', '', '', 'I', '', '', '', '', '');
$url = str_replace ($find, 'i', $url);
$find = array('', '', '', '', '', '', '', '');
$url = str_replace ($find, 'o', $url);
$find = array('', '', '', '', '', '', '', '', '', '');
$url = str_replace ($find, 'a', $url);
$find = array('', '', '', '', '', '', '', '');
$url = str_replace ($find, 'u', $url);
$find = array('', '');
$url = str_replace ($find, 'c', $url);
$find = array('', '');
$url = str_replace ($find, 's', $url);
$find = array('', '');
$url = str_replace ($find, 'g', $url);
$find = array('/[^a-z0-9\-<>]/', '/[\-]+/', '/<[^>]*>/');
$repl = array('', '_', '');
$url = preg_replace ($find, $repl, $url);
$url = str_replace ('++', '+', $url);
return $url;
}yardım eden herkese şimdiden teşekkürler