• 11-07-2006, 19:28:52
    #1
    arkadaşlar smf foruma .htaccess atsam çalışır mı
    2.hangi kodu atmam gerekli
    bu konularda briaz acemiyim yardımcı olursanız sevinirim html çevirmek istiyorumda
  • 12-07-2006, 02:49:01
    #2
    dostum bunun için htaccess e gerek yok.
    eğer hostun apache destekliyorsa bunu smf in kendi ayarlarından yapabilirsin.

    forum seçenekleri > url'leri göstermeden kullan seçeneğini aktif edersen html olur. yok olmadıysa söyle, bir yerde ufak bir değişiklik yapman gerekiyor o kodları vereyim.
  • 12-07-2006, 09:09:18
    #3
    Üyeliği durduruldu
    Smf forum hakkında bir bilgim yok
    .htaccess konusunda Buraya bakabilirsin.
  • 12-07-2006, 14:22:59
    #4
    kodları alabilirmiyim
  • 12-07-2006, 15:15:26
    #5
    Bunun için apachede yapyığın değişiklikleri geri al. Yani eğer htaccess ile oynadıysan onu geri al. Ve url'leri göstermeden kullan seçeneği aktif olsun.

    Şimdi Sources dizininden QueryString.php dosyasında

    ara:
    {
    // Let's do something special for session ids!
    if (defined('SID') && SID != '')
    $buffer = preg_replace('/"' . preg_quote($scripturl, '/') . '\?(?:' . SID . ';)((?:board|topic)=[^#"]+?)(#[^"]*?)?"/e', "'\"' . \$scripturl . '/' . strtr('\$1', '&;=', '//,') . '.html?' . SID . '\$2\"'", $buffer);
    else
    $buffer = preg_replace('/"' . preg_quote($scripturl, '/') . '\?((?:board|topic)=[^#"]+?)(#[^"]*?)?"/e', "'\"' . \$scripturl . '/' . strtr('\$1', '&;=', '//,') . '.html\$2\"'", $buffer);
    }
    değiştir:
    // {
    // Let's do something special for session ids!
    if (defined('SID') && SID != '')
    $buffer = preg_replace('/"' . preg_quote($scripturl, '/') . '\?(?:' . SID . ';)((?:board|topic)=[^#"]+?)(#[^"]*?)?"/e', "'\"' . \$scripturl . '/' . strtr('\$1', '&;=', '//,') . '.html?' . SID . '\$2\"'", $buffer);
    else
    $buffer = preg_replace('/"' . preg_quote($scripturl, '/') . '\?((?:board|topic)=[^#"]+?)(#[^"]*?)?"/e', "'\"' . \$scripturl . '/' . strtr('\$1', '&;=', '//,') . '.html\$2\"'", $buffer);
    // }
    url'leri göstermeden kullan seçeneğini açmazsan çalışmaz, herhangi bir hata olmasına karşın dosyanı yedeklemeyi unutma.
    bu arada bu RC2 için geçerli kod.
  • 12-07-2006, 18:24:34
    #6
    1.0.7 için ise aşağıdaki kodları bulup değiştireceksin
    Sources/QueryString.php

    eski hali:


    // You can't do both, because session_start() won't catch the session if you do.  But this should work even in 4.2.x, just not CGI.
    	elseif (!empty($modSettings['queryless_urls']) && !$context['server']['is_cgi'] && $context['server']['is_apache'])
    		$buffer = preg_replace('/"' . preg_quote($scripturl, '/') . '\?((?:board|topic)=[^#"]+)(#[^"]*)?"/e', "'\"' . \$scripturl . '/' . strtr('\$1', '&;=', '//,') . '.html\$2\"'", $buffer);
    
    	// Return the changed buffer.
    	return $buffer;
    }
    
    ?>
    html için bununla değiştir :


    // You can't do both, because session_start() won't catch the session if you do.  But this should work even in 4.2.x, just not CGI.
    	// elseif (!empty($modSettings['queryless_urls']) && !$context['server']['is_cgi'] && $context['server']['is_apache'])
    		$buffer = preg_replace('/"' . preg_quote($scripturl, '/') . '\?((?:board|topic)=[^#"]+)(#[^"]*)?"/e', "'\"' . \$scripturl . '/' . strtr('\$1', '&;=', '//,') . '.html\$2\"'", $buffer);
    
    	// Return the changed buffer.
    	return $buffer;
    }
    
    ?>