• 05-07-2015, 13:30:10
    #1
    Arkadaşlar nginx i ilk defa kullanıyorum, bu htaccess kodu varken site çalışmıyor silince çalışıyor htaccessden bu kodu nginx uyumlu hale nasıl getirebilirim

    RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/all/$1/index.html -f [or]
    RewriteCond /home/***/public_html/wp-content/cache/all/$1/index.html -f
    RewriteRule ^(.*) "/wp-content/cache/all/$1/index.html" [L]
  • 05-07-2015, 14:37:24
    #2
    burayakadar adlı üyeden alıntı: mesajı görüntüle
    Arkadaşlar nginx i ilk defa kullanıyorum, bu htaccess kodu varken site çalışmıyor silince çalışıyor htaccessden bu kodu nginx uyumlu hale nasıl getirebilirim

    RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/all/$1/index.html -f [or]
    RewriteCond /home/***/public_html/wp-content/cache/all/$1/index.html -f
    RewriteRule ^(.*) "/wp-content/cache/all/$1/index.html" [L]
    Lütfen aşağıda ki kodu dener misiniz? Ayrıca .htaccess diye bir dosya oluşturursanız çalışmaz. Direk vhost-user.conf gibi kullanıcınıza ait conf dosyasının içerisinde eklemeniz gerekiyor.

    #ignored: condition 0
    if (-f /home/***/public_html/wp-content/cache/all/$1/index.html){
    	set $rule_0 2$rule_0;
    }
    if ($rule_0 = "21"){
    	rewrite ^/(.*) /"/wp-content/cache/all/$1/index.html" last;
    }
    Eğer yukarıdakinde sorun yaşarsanız aşağıdakini deneyin.

    location / {
    rewrite ^/(.*) /wp-content/cache/all/$1/index.html" break;
    }
  • 06-07-2015, 13:56:52
    #3
    zoeken adlı üyeden alıntı: mesajı görüntüle
    Lütfen aşağıda ki kodu dener misiniz? Ayrıca .htaccess diye bir dosya oluşturursanız çalışmaz. Direk vhost-user.conf gibi kullanıcınıza ait conf dosyasının içerisinde eklemeniz gerekiyor.

    #ignored: condition 0
    if (-f /home/***/public_html/wp-content/cache/all/$1/index.html){
    	set $rule_0 2$rule_0;
    }
    if ($rule_0 = "21"){
    	rewrite ^/(.*) /"/wp-content/cache/all/$1/index.html" last;
    }
    Eğer yukarıdakinde sorun yaşarsanız aşağıdakini deneyin.

    location / {
    rewrite ^/(.*) /wp-content/cache/all/$1/index.html" break;
    }
    tşekkürler hocam sorun halloldu.Sağolun