merhaba. sizden bi türlü çözemeiğim bi konu hakkında yardım isticem. Şimdi wordpress 2.6.3 ve WP Super Cache 0.8.4 kullanıyorum. Geçenlerde wp super cache'i ayarlarını açtığımda "Mod Rewrite Rules" kısmında bi uyarı vardı.
RewriteCond %{REQUEST_URI} !^.*[^/]$
RewriteCond %{REQUEST_URI} !^.*//.*$
2 satırlık yukardaki kodu .htaccess'e eklememi istiyordu. Bende bu 2 satırlık kodu .htaccess'e ekledim. Herhangi bir sorun olmadı. Fakat sonra Google Site Yöneticisi Araçlaına girdiğimde birçok bulunmayan sayfayla karşılaştım. Site; örneğin http://www.xxx.com/xxx diye girdiğimde bunu otamatik http://www.xxx.com/xxx/ çevirmiyor ve sunucu hatasıyla karşılaşıyordum. Yani google botu siteye girdiğinde tüm postlarda, etiketlerde sonunda slash işareti yoksa bunu hata olarak algılıyordu. Sonra bi araştırma yaptım ama bi türlü bulamadım. O eklediğim kodu da sildim düzeldi. Şimdiki .htaccess şu şekilde;
************************************************** *******
# BEGIN WPSuperCache
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
AddDefaultCharset UTF-8
RewriteCond %{REQUEST_URI} !^.*[^/]$
RewriteCond %{REQUEST_URI} !^.*//.*$
RewriteCond %{REQUEST_METHOD} !=POST
RewriteCond %{QUERY_STRING} !.*=.*
RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress|wp-postpass_).*$
RewriteCond %{HTTP:Accept-Encoding} gzip
RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html.gz -f
RewriteRule ^(.*) /wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html.gz [L]
RewriteCond %{REQUEST_URI} !^.*[^/]$
RewriteCond %{REQUEST_URI} !^.*//.*$
RewriteCond %{REQUEST_METHOD} !=POST
RewriteCond %{QUERY_STRING} !.*=.*
RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress|wp-postpass_).*$
RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html -f
RewriteRule ^(.*) /wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html [L]
</IfModule>
# END WPSuperCache
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
************************************************** ****
wp-content/cache/.htaccess ise şu şekilde;
************************************************** ****
# BEGIN supercache
AddEncoding x-gzip .gz
AddType text/html .gz
# END supercache
************************************************** ***
1)Yukardaki Wp-super-cache için kodlar doğrumudur?
2)benden istediği 2 satırlık kodu .htaccess'e yüklemeye gerek yokmu?
3)Yine wp-super-cache ayarlarındaki "Super Cache Compression" kısmında aşağıdaki hatayı alıyorum. Ne yapmam gerekio.Cacheleri sildim yeniden denedim olmadı. Eski sürümlerde böyle bir sorun yoktu.
************************************************** ***
Enabled Disabled Compression is disabled by default because some hosts have problems with compressed files. Switching this on and off clears the cache.
************************************************** ****
Şimdiden verdiğiniz değerli bigiler için çok teşekkrüler. Saygılarımla
wordpress ve WP Super Cache
1
●589