Important: This page is using cookies (cookies). Using this website without turning off cookies in browser, means that you agree for using it.
Buy Now! Features Downloads

Earn with us!

If you would like to start earning money with vBET join to Affiliate Program.
Results 1 to 9 of 9

Thread: Outside pages Working unless not in directory

  1. #1
    Senior Member
    Join Date
    Jun 2010
    Posts
    276

    Default 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

    Code:
    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]

  2. #2
    Senior Member
    Join Date
    Jun 2010
    Posts
    276

    Default

    Also im building my own hreflang code but VBET keeps adding current lang to my url in the <lang /> code!

    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

  3. #3
    Senior Member
    Join Date
    Jun 2010
    Posts
    276

    Default

    here is full code working, not english will be default as well

    Code:
    <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/" />
    Last edited by ctrenks; 24-09-19 at 17:42.

  4. #4
    Michał Podbielski (vBET Staff) vBET's Avatar
    Join Date
    Oct 2009
    Posts
    3,037

    Default

    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

  5. #5
    Senior Member
    Join Date
    Jun 2010
    Posts
    276

    Default

    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

  6. #6
    Senior Member
    Join Date
    Jun 2010
    Posts
    276

    Default

    Using bbcode [url.. does not work in the header meta values

    PHP Code:
    <link rel="canonical" href="https://www.allfreechips.com/">
    <
    link rel="alternate" hreflang="x-default" href="[url]https://www.allfreechips.com/[/url]" />
    <
    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/" /> 

  7. #7
    Senior Member
    Join Date
    Jun 2010
    Posts
    276

    Default

    Wsa able to show actual source by using php bbcode here, you can see the [url code is shown in source

  8. #8
    Senior Member
    Join Date
    Jun 2010
    Posts
    276

    Default

    Think we can add <link ...> to the avoid code?

  9. #9
    Michał Podbielski (vBET Staff) vBET's Avatar
    Join Date
    Oct 2009
    Posts
    3,037

    Default

    I will assist you in PM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •