View Full Version : Solved Outside pages Working unless not in directory
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]
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
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/" />
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
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
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]
Wsa able to show actual source by using php bbcode here, you can see the [url code is shown in source
Think we can add <link ...> to the avoid code?
Powered by vBulletin® Version 4.2.5 Copyright © 2026 vBulletin Solutions Inc. All rights reserved.