Wordpress Kök Dizinden Çalışsın

Wordpress i her zaman sunucuda blog dizinine  veya wordpress dizini içerisine yerleştirerek kurarım. Bu daha derdi toplu bir site yönetimi ve yedekleme kolaylığı sağlıyor.



Bu defa Bloğumun kök dizinden çalışmasını istedim ;-)

Örnek vermek gerekirse  http://caylak.truvalinux.org.tr/blog/ yazmak yerinehttp://caylak.truvalinux.org.tr  yazarak bloğumun açılmasını istedim.

Genel Ayarlar Bölümünden Düzenlemeyi yaptım.

wp-kok-dizin

Wordpress gerekli .htaccess Dosyasını oluşturdu.

.htaccess içeriği

// kod

1# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress


Şimdi Sırada Sitemizin köküne index.php dosyasını oluşturmaya geldi. Tabi içeriğini değiştirmemiz gerekecek.

index.php Dosyasının yeni hali.

//kod

1<?php
/**
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*/

/**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define('WP_USE_THEMES', true);

/** Loads the WordPress Environment and Template */
require('./blog/wp-blog-header.php');


index.php dosyasını ftp ile Sitenizin Kök üne kopyalayın.

Bu değişiklikten sonra sitemap.xml ve sitemap.xml.gz dosyaları kök Dizinde oluşturulmaya başlanacaktır.

Hepsi bu kadar ;)

Umarım Faydalı olmuştur.

Yorumlarınızı beklerim...

Yorum Gönder

Emoticon
:) :)) ;(( :-) =)) ;( ;-( :d :-d @-) :p :o :>) (o) [-( :-? (p) :-s (m) 8-) :-t :-b b-( :-# =p~ $-) (b) (f) x-) (k) (h) (c) cheer
Click to see the code!
To insert emoticon you must added at least one space before the code.

Author Name

İletişim Formu

Ad

E-posta *

Mesaj *

Blogger tarafından desteklenmektedir.