PDA

View Full Version: Riješen vBET + + lighttpd vbseo



valsha
18-02-10, 11:23
P: Što o tome. Htaccess u lighttpd + vbseo?

Vaš pravila za apache htaccess:. (Bez bilo kakve pravila za lighttpd)

#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 pravila za lighttpd:

$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"
)
}

Što je s pravilima:
1. lighttpd + + vbseo vbet
2. nginx + + vbseo vbet

Hvala Vam.

vBET
18-02-10, 13:14
Mi vam možemo pružiti vam takva pravila temeljeći na vBEO pravila - to znači bez testiranja. To bi trebao raditi, ali ne možemo biti sigurni, bez ispitivanja. Zainteresirani?

valsha
18-02-10, 16:04
Zainteresirani?
Da, molim.

vBET
19-02-10, 00:08
U redu na taj način. Ispod nije testiran pravilo za lighttpd. Molimo da provjerite i javite nam to radi (ako mi PM pristup nekim detaljima testiranja primjer mogu se testirati i dati vam sigurno rješenje).



$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"
)
}


Pretpostavlja se tamo da forum koristi poddirektorij foruma u URL-u. Ako ne Uklonite sve / foruma što možete vidjeti. Mislim da;) Žao nam je - ali kao što sam napisao nije bio testiran. Nadam se da radi. Molimo backup svoje stvarne pravila prije nego su promjene.

valsha
19-02-10, 00:51
Vidim promjene, ali što je:

"^/forums/(.+)\?(.*)$" => "/forums/vbseo.php?$2",
"^/forums/(.+)$" => "/forums/vbseo.php"
to nije potreba bilo koji više?

vBET
19-02-10, 01:28
Vidim promjene, ali što je:

"^/forums/(.+)\?(.*)$" => "/forums/vbseo.php?$2",
"^/forums/(.+)$" => "/forums/vbseo.php"
to nije potreba bilo koji više?

No to je ideja vbenterprisetranslator_seo.php djeluje kao filtar za vbseo.php koja je neka vrsta prednji kontroler. Dakle, sve ide sada preko vbenterprisetranslator_seo.php što čini pripremu za vBET, a zatim uključuje vbseo.php

Ako želite igrati s pravilima za ostale motore - to su pravila pravila:
- Izraditi pravila za 2 prijevode (za glavnu stranicu i ostale)
- Izraditi pravila za točne uvjete kao i za vbseo.php, ali upućuju na vbenterprisetranslator_seo.php

valsha
19-02-10, 13:52
Hvala, ja probati ovaj kod. Ja pisali ovdje moje rezultate.

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