PDA

Orijinalini görmek için tıklayınız: Çözülmüş BB + lighttpd + vbseo



valsha
18-02-10, 11:23
Lighttpd içinde S. hakkında. Htaccess + vbseo?

. Apache htaccess kuralları: (lighttpd için herhangi bir kural yok)

#RULES for SEO translation links with vbSEO (have to be included before all rules to vbseo.php)
#RewriteRule ^/?(af|sq|ar|be|bg|ca|zh-CN|hr|cs|da|nl|en|et|tl|fi|fr|gl|de|el|iw|hi|hu|is|id|ga|it|ja|ko|lv|lt|mk|ms|mt|no|fa|pl|pt|ro|ru|sr|sk|sl|es|sw|sv|zh-TW|th|tr|uk|vi|cy|yi)/$ vbenterprisetranslator_seo.php?vbet_lang=$1&redirected=/index.php [L,QSA]
#RewriteRule ^/?(af|sq|ar|be|bg|ca|zh-CN|hr|cs|da|nl|en|et|tl|fi|fr|gl|de|el|iw|hi|hu|is|id|ga|it|ja|ko|lv|lt|mk|ms|mt|no|fa|pl|pt|ro|ru|sr|sk|sl|es|sw|sv|zh-TW|th|tr|uk|vi|cy|yi)/(.*)?$ vbenterprisetranslator_seo.php?vbet_lang=$1&redirected=/$2 [L,QSA]

#RewriteCond %{REQUEST_URI} !(admincp/|modcp/|vbseo_sitemap/|cron)
#RewriteRule ^((archive/)?(.*\.php(/.*)?))$ vbenterprisetranslator_seo.php [L,QSA]

#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{REQUEST_FILENAME} !^(admincp|modcp|clientscript|cpstyles|images)/
#RewriteRule $ vbenterprisetranslator_seo.php [L,QSA]

vBSEO lighttpd için kurallar:

$HTTP["host"] == "yourdomain.com" {
server.document-root = "/path/to/your/public_html/"
url.rewrite-once = (
"^/forums/(sitemap.*\.(xml|txt)(\.gz)?)$" => "/forums/vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1",
"^(/forums/(admincp|modcp|clientscript|cpstyles|images|customavatars)/.*)$" => "$1",
"^(/favicon\.ico|/robots\.txt|.*clear\.gif)$" => "$1",
"^/forums/(.+)\?(.*)$" => "/forums/vbseo.php?$2",
"^/forums/(.+)$" => "/forums/vbseo.php"
)
}

Ne için kurallar:
1. lighttpd + vbseo + BB
2. nginx + vbseo + BB

Teşekkür ederim.

vBET
18-02-10, 13:14
Size vBEO kurallara dayalı bu tür kurallara sağlayabilir test anlamına gelir. Çalışması gerektiğini, ancak testler olmaksızın emin olamaz. Ilgileniyor musunuz?

valsha
18-02-10, 16:04
Ilgileniyor musunuz?
evet, lütfen.

vBET
19-02-10, 00:08
Böylece Tamam. Aşağıda lighttpd için kural test değildir. (Bana bazı test örneğine erişim ayrıntıları PM test ve emin çözüm verebilir) kontrol edin ve nasıl çalışır bize bildirin.



$HTTP["host"] == "yourdomain.com" {
server.document-root = "/path/to/your/public_html/"
url.rewrite-once = (
"^/forums/(sitemap.*\.(xml|txt)(\.gz)?)$" => "/forums/vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1",
"^/forums/(af|sq|ar|be|bg|ca|zh-CN|hr|cs|da|nl|en|et|tl|fi|fr|gl|de|el|iw|hi|hu|is|id|ga|it|ja|ko|lv|lt|mk|ms|mt|no|fa|pl|pt|ro|ru|sr|sk|sl|es|sw|sv|zh-TW|th|tr|uk|vi|cy|yi)/$" => "/forums/vbenterprisetranslator_seo.php?vbet_lang=$1&redirected=/forums/",
"^/forums/(af|sq|ar|be|bg|ca|zh-CN|hr|cs|da|nl|en|et|tl|fi|fr|gl|de|el|iw|hi|hu|is|id|ga|it|ja|ko|lv|lt|mk|ms|mt|no|fa|pl|pt|ro|ru|sr|sk|sl|es|sw|sv|zh-TW|th|tr|uk|vi|cy|yi)/(.*)?$" => "/forums/vbenterprisetranslator_seo.php?vbet_lang=$1&redirected=/forums/$2",
"^(/forums/(admincp|modcp|clientscript|cpstyles|images|customavatars)/.*)$" => "$1",
"^(/favicon\.ico|/robots\.txt|.*clear\.gif)$" => "$1",
"^/forums/(.+)\?(.*)$" => "/forums/vbenterprisetranslator_seo.php?$2",
"^/forums/(.+)$" => "/forums/vbenterprisetranslator_seo.php"
)
}


Bu forumu URL altdizin blogunuzu kullandığı varsayılır. Değilse lütfen Gördüğünüz / forums kaldırmak. Üzgünüz) ama yazdım test değildi, ben öyle düşünüyorum. Umut çalışıyor. Lütfen yapılan değişiklikleri önce gerçek kuralları yedekleme.

valsha
19-02-10, 00:51
Değişiklikleri görmek, ama ne hakkında:

"^/forums/(.+)\?(.*)$" => "/forums/vbseo.php?$2",
"^/forums/(.+)$" => "/forums/vbseo.php"
hiçbir ihtiyacı bulunuyor?

vBET
19-02-10, 01:28
Değişiklikleri görmek, ama ne hakkında:

"^/forums/(.+)\?(.*)$" => "/forums/vbseo.php?$2",
"^/forums/(.+)$" => "/forums/vbseo.php"
hiçbir ihtiyacı bulunuyor?

Hayır Bu fikir vbenterprisetranslator_seo.php ön denetleyici çeşit vbseo.php için filtre gibi davranır. Yani her şey şimdi BB için hazırlık yapar çukur vbenterprisetranslator_seo.php gider ve sonra vbseo.php içerir

Diğer motorlar için kurallar ile oynamak istiyorsanız bu kurallar kurallar şunlardır:
- Çeviriler için 2 kuralları (ana sayfa ve diğerleri için)
- Vbseo.php gibi tam koşulları için kurallar oluşturmak ama vbenterprisetranslator_seo.php için işaret

valsha
19-02-10, 13:52
Teşekkür ederim, ben bu kodu deneyin. Burada benim sonuç yazılan.

Automatic Translations (Powered by Google, Microsoft®, Yandex, SDL Language Cloud, IBM Watson and Apertium):
AfrikaansAlbanianArabicBelarusianBulgarianCatalanChineseCroatianCzechDanishDutchEnglishEstonianFilipinoFinnishFrenchGalicianGermanGreekHaitian CreoleHebrewHindiHungarianIcelandicIndonesianIrishItalianJapaneseKoreanLatvianLithuanianMacedonianMalayMalteseNorwegianPersianPolishPortugueseRomanianRussianSerbianSlovakSlovenianSpanishSwahiliSwedishTaiwaneseThaiTurkishUkrainianVietnameseWelshYiddish
Languages translations delivered by vBET 4.10.1