PDA

View Full Version : Solved Outside pages Working unless not in directory



ctrenks
24-09-19, 15:56
I have some pages in virtual folders and .htaccess rules to switch Lang and set VBET_Outside, these work great, but I also have pages that are site.com/pagename.html that do not work, they get a re-direct to the non 2 character page (default)

This rule should allow this to work


RewriteRule ^/?(af|sq|ar|hy|az|eu|be|bg|ca|zh-CN|hr|cs|da|nl|en|et|tl|fi|fr|gl|ka|de|el|ht|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|ur|vi|cy|yi)/(.*)?$ $2?language=$1&vbet_outside=true [L,QSA]

ctrenks
24-09-19, 17:17
Also im building my own hreflang code but VBET keeps adding current lang to my url in the <lang /> code!


<link rel="alternate" hreflang="x-default" href="https://www.allfreechips.com/es/casino_guide/test-page.html">

Im printing without the /es/ in it

ctrenks
24-09-19, 17:32
here is full code working, not english will be default as well


<link rel="canonical" href="https://www.allfreechips.com/no/">
<link rel="alternate" hreflang="x-default" href="https://www.allfreechips.com/no/" />
<link rel="alternate" hreflang="nl" href="https://www.allfreechips.com/nl/" />
<link rel="alternate" hreflang="fr" href="https://www.allfreechips.com/fr/" />
<link rel="alternate" hreflang="de" href="https://www.allfreechips.com/de/" />
<link rel="alternate" hreflang="it" href="https://www.allfreechips.com/it/" />
<link rel="alternate" hreflang="no" href="https://www.allfreechips.com/no/" />
<link rel="alternate" hreflang="es" href="https://www.allfreechips.com/es/" />
<link rel="alternate" hreflang="ru" href="https://www.allfreechips.com/ru/" />

vBET
25-09-19, 11:18
Hello.

Do you have any issue here? If you want to add some part which will not be translated, then you can use notranslate bbcode. I'm not sure will it parse URL anyway or nor, but just try to wrap your whole link in notranslate bbcode. If it will not work, I will find other way, there should be one for sure. In configuration you also can set which URL's should be ignored - look for: Translation Options > Ignore URLs

ctrenks
25-09-19, 14:24
2 issues -

Pages not in a folder will not translate, they re-direct to english page - Example - https://www.allfreechips.com/best-online-casinos.html

2nd issue is im adding the langhref in header, but vbet is translating the english / default link to current lang link, i dont think i can use bbcode in header correct

ctrenks
25-09-19, 15:53
Using bbcode <link rel="canonical" href="https://www.allfreechips.com/">
<link rel="alternate" hreflang="x-default" href="[url]https://www.allfreechips.com/" />
<link rel="alternate" hreflang="nl" href="https://www.allfreechips.com/nl/" />
<link rel="alternate" hreflang="fr" href="https://www.allfreechips.com/fr/" />
<link rel="alternate" hreflang="de" href="https://www.allfreechips.com/de/" />
<link rel="alternate" hreflang="it" href="https://www.allfreechips.com/it/" />
<link rel="alternate" hreflang="no" href="https://www.allfreechips.com/no/" />
<link rel="alternate" hreflang="es" href="https://www.allfreechips.com/es/" />
<link rel="alternate" hreflang="ru" href="https://www.allfreechips.com/ru/" />[/php]

ctrenks
25-09-19, 15:54
Wsa able to show actual source by using php bbcode here, you can see the [url code is shown in source

ctrenks
27-09-19, 13:40
Think we can add <link ...> to the avoid code?

vBET
01-10-19, 09:42
I will assist you in PM.

AfrikaansAlbanianArabicBelarusianBulgarianCatalanChineseCroatianCzechDanishDutchEnglishEstonianFilipinoFinnishFrenchGalicianGermanGreekHaitian CreoleHebrewHindiHungarianIcelandicIndonesianIrishItalianJapaneseKoreanLatvianLithuanianMacedonianMalayMalteseNorwegianPersianPolishPortugueseRomanianRussianSerbianSlovakSlovenianSpanishSwahiliSwedishTaiwaneseThaiTurkishUkrainianVietnameseWelshYiddish
Integration with translations by vB Enterprise Translator 4.10.1