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] nginx ve htacess bu kodu nasıl değiştirebilirim
2
●478
- 05-07-2015, 13:30:10Arkadaş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
- 05-07-2015, 14:37:24Lü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.burayakadar adlı üyeden alıntı: mesajı görüntüle
#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:52tşekkürler hocam sorun halloldu.Sağolunzoeken adlı üyeden alıntı: mesajı görüntüle