İyinet'e Hoşgeldiniz!

Türkiye'nin En Eski Webmaster Forum'una Hemen Kayıt Olun!

Kayıt Ol!

Wordpress de gercek html sayfalari yaratin

nc-1

0
İyinet Üyesi
Katılım
18 Ocak 2010
Mesajlar
48
Reaction score
2
Arkadaslar eger wordpress sayfalarinizda yorumlara izinvermiyorsaniz ve hicbir sekilde sayac eklentileri (okunma sayisi,rating,degerlendirme gibi vs.) kullanmiyorsaniz sayfalarinizi gercek html sayfalarina dönüstürmeniz sizin yarariniza olacaktir.

Benim örnegin video sitem var,videolari otomatik olarak cekiyor (youtube,metacafe,dailymotion vs.)

Siteyi kurali 5 ay oldu ve yaklasik 150.000 video cektim siteye...
5 ay boyunca siteye günlük 20-30 ziyaretciden fazla giren olmuyordu.

Biraz aradim internette ve yabanci bir sitede cache kodlari buldum ve bu kodlarda ufak degisiklikler yaptim.

All in One Seo ve related post gibi sayacsiz eklentiler de kullaniyorum.
Artik tekil sayfalari single.php) gercek html sayfalarina otomatik olarak dönüstürüyorum.

Bu islemi yapmaya baslayali sadece 22 gün oldu ve günlük ziyaretci sayim 20-30 dan 5k ile 8k arasina firladi.

Günlük adsense den ortalama 5 euro ya cikti gelirim.

Tabiki bu birsey degil ama insallah devmli kalir.

Ben yararlanabiliyorsam baskalarida yararlanabilir belki..

Belki baskalarinin da isine yarar.

Iste size benim single.php nin örnegi:
Siteme ait olan kisimlari xxx ile degistirdim.

PHP:
<?php $cachefile = "./". $_SERVER['REQUEST_URI'];
if (file_exists($cachefile)) {
	include($cachefile);
} else {
	ob_start(); 
?>
<?php get_header(); ?>

	<div id="content_top"><!-- nothing to see here --></div>
	<div id="content_wrapper">
		<div id="main">
			<?php if (have_posts()) : ?>
            <?php while (have_posts()) : the_post(); ?>  
            
            <?php get_sidebar(); ?>
            
            <div class="the-single-post <?php sticky_class(); ?>" id="post-<?php the_ID(); ?>"> 
                <h2><a href="<?php the_permalink() ?>" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
                <div class="entry">
<br /> 
<?php mvb_embed_code('the_ID()', 468, 350); ?>
<br />
<p>
	<!-- Share This Button -->
<a href="http://twitter.com/home/?status=<?php the_title() ?>+<?php the_permalink() ?>/" title="Tweet this" target="_blank"><img src="http://www.xxx.com/images/share/twitter.gif"  alt="Paylas" width="16" height="16" border="0" align="absmiddle" /></a> 
<a href="http://digg.com/submit?phase=2&url=<?php the_permalink() ?>/&title=<?php the_title() ?>" target="_blank"><img src="http://www.xxx.com/images/share/digg.gif"  alt="Paylas" width="16" height="16" border="0" align="absmiddle" /></a> 
<a href="http://en.reddit.com/submit?url=<?php the_permalink() ?>/&title=<?php the_title() ?>" target="_blank"><img src="http://www.xxx.com/images/share/reddit.gif"  alt="Paylas" width="16" height="16" border="0" align="absmiddle" /></a> 
<a href="http://furl.net/storeIt.jsp?u=<?php the_permalink() ?>/&t=<?php the_title() ?>" target="_blank"><img src="http://www.xxx.com/images/share/furl.gif"  alt="Paylas" width="16" height="16" border="0" align="absmiddle" /></a> 
<a href="http://www.google.com/bookmarks/mark?op=edit&bkmk=<?php the_permalink() ?>/&title=<?php the_title() ?>" target="_blank"><img src="http://www.xxx.com/images/share/google.gif"  alt="Paylas" width="16" height="16" border="0" align="absmiddle" /></a> 
<a href="http://www.technorati.com/faves?add=<?php the_permalink() ?>/" target="_blank"><img src="http://www.xxx.com/images/share/technorati.gif"  alt="Paylas" width="16" height="16" border="0" align="absmiddle" /></a> 
<a href="https://favorites.live.com/quickadd.aspx?marklet=1&mkt=en-us&url=<?php the_permalink() ?>/&title=<?php the_title() ?>&top=1" target="_blank"><img src="http://www.xxx.com/images/share/windowslive.gif"  alt="Paylas" width="16" height="16" border="0" align="absmiddle" /></a> 
<a href="http://myweb2.search.yahoo.com/myresults/bookmarklet?u=<?php the_permalink() ?>/&t=<?php the_title() ?>" target="_blank"><img src="http://www.xxx.com/images/share/yahoo.gif"  alt="Paylas" width="16" height="16" border="0" align="absmiddle" /></a> 
<a href="http://www.stumbleupon.com/submit?url=<?php the_permalink() ?>/&title=<?php the_title() ?>" target="_blank"><img src="http://www.xxx.com/images/share/stumbleupon.gif"  alt="Paylas" width="16" height="16" border="0" align="absmiddle" /></a> 
<a href="http://del.icio.us/post?url=<?php the_permalink() ?>/&title=<?php the_title() ?>" target="_blank"><img src="http://www.xxx.com/images/share/delicious.gif"  alt="Paylas" width="16" height="16" border="0" align="absmiddle" /></a> 
<a href="http://www.facebook.com/share.php?u=<?php the_permalink() ?>/&title=<?php the_title() ?>" target="_blank"><img src="http://www.xxx.com/images/share/facebook.gif"  alt="Paylas" width="16" height="16" border="0" align="absmiddle" /></a> 
   </p>
<?php the_content('Continue Reading'); ?>
<br />
 <script type="text/javascript"><!--
google_ad_client = "pub-xxx";
/* 336x280, Erstellt 26.04.11 */
google_ad_slot = "3149923446";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
 <p><strong>Kategori:</strong> <?php the_category(', ') ?></p>
                            <?php the_tags('<p class="tags"><strong>Etiketler:</strong> ', ', ', '</p>'); ?>
                </div>
            </div> <!-- the_post -->
            
            <?php endwhile; else: ?>
    		<?php endif; ?>	
		</div> <!-- main -->
	</div> <!-- content_wrapper -->
	<div id="content_bottom"><!-- nothing to see here --></div>


<?php get_footer(); ?>
<?php
	$fp = fopen($cachefile, 'w');
	fwrite($fp, ob_get_contents());
	fclose($fp);
	ob_end_flush();
}	
	
?>

Cace islemini yapan kisimlar en üst deki:
PHP:
<?php $cachefile = "./". $_SERVER['REQUEST_URI'];
if (file_exists($cachefile)) {
	include($cachefile);
} else {
	ob_start(); 
?>

ile en altdaki:

PHP:
<?php
	$fp = fopen($cachefile, 'w');
	fwrite($fp, ob_get_contents());
	fclose($fp);
	ob_end_flush();
}	
	
?>

kodlardir.

Bu kodun orijinalinde zaman ayari da vardi.. yani belli bir süre sonra cachelenmis sayfalari silebiliyorduk ama benim hicbir sayac tutmadigima göre ve yorum fonksiyonunuda iptal ettigime göre zaman ayarini gereksiz gördüm ve sayfalar gercek html sayfalarina dönüstürülmüs olarak kaliyor serverde.
 

isousluer

0
İyinet Üyesi
Katılım
14 Temmuz 2010
Mesajlar
386
Reaction score
12
Konum
Konya
Tam olarak anlamadım hocam. Gerçek html derken neyi kastediyorsunuz?
 

nc-1

0
İyinet Üyesi
Katılım
18 Ocak 2010
Mesajlar
48
Reaction score
2
Alt sayfalarda kesinlikle veritabani sorgulamasi olmuyor yani..
Bildigin gercek html sayfasi olusturuyor bu kod.
Bu da alt sayfalarda kesinlikle veritabani sorgulamasi olmamasi anlamina geliyor.
Dedigim gibi 150.000 in üzerinde gercek sayfa olusturdum.
Hepsiden meta keyword ve description lu ve hepside google de indexlendi.
Bu uygulamayi yapmadan önce devamli veritabani hatasi aliyordum.

Otomatik post ekletenler icin veya cok fazla post bulunduranlar icin birebir.

En uygunu da video siteleri..

(az önce baktim bugün tekil ziyaretci su ana kadar 10.500 ü bulmus. 99.99 % u yabanci hit. Zaten site dilide ingilizce)

Tabiki dedigim gibi single.php de herhangi bir sayim eklentisi kullanmayacaksiniz ve yorumlarda kapali olacak.

Söylemeyi unutmusum:
Kalici baglatilarinizin uzantisi .html olarak ayarlamalisiniz..
Yani
/yil/ay/gün/post gibi degil de dogrudan
/post.html
 

Türkiye’nin ilk webmaster forum sitesi iyinet.com'da forum üyeleri tarafından yapılan tüm paylaşımlardan; Türk Ceza Kanunu’nun 20. Maddesinin, 5651 Sayılı Kanununun 4. maddesinin 2. fıkrasına göre, paylaşım yapan üyeler sorumludur.

Backlink ve Tanıtım Yazısı için iletişime geçmek için Skype Adresimiz: .cid.1580508955483fe5

Üst