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.
Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 24

Thread: Outside pages not working on non base language, creates strange URL's

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

    Default

    ok, doing some debugging here.

    If i add a die($url) into the function before or after
    Code:
    $url = preg_replace('/('.VBET_LANGUAGESMATCH.')\//','',$url);
    I get this (i changed lang a few times)

    BEFORE : /es/be/fr/casino_guide/100-percent-bonuses.html
    AFTER: /casino_gui100-percent-bonuses.html

    so its stripping all lanf params, even if they are not inside / /

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

    Default

    Its obvious were picking up de/ from casino_guide/ in the preg match here.

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

    Default

    Pages withough guide/ in them simply re-direct right back to the same non lang page as well. The index page works great ie Online Casino Guide | No Deposit Casinos | Online Casino Reviews and Casino Forum and the forums pages Allfreechips Casino Bonus Forum

    There is something in this re-direct with the newer version that is not working right.

    Can I deowngrade back to an older VBET version?

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

    Default

    Hi. I will support this thread since there is trouble with solution. Please give me some time to read whole story and check what is going on

  5. #15
    Michał Podbielski (vBET Staff)
    Join Date
    Oct 2009
    Posts
    3,037

    Default

    Hi. I saw that link to casino-banking are not working for translation. This is because you have it in virtual directroy - it is really redirected by this rule:
    Code:
    RewriteRule [.]*casino-banking/([a-z0-9-]+).html index.php?id=casino-banking/$1 [QSA]
    And vBET rules are after that - at this moment language code included in URL is already miss. So we need to customize rules to make it working.

    I will make copy of your .htaccess and work on it. In case if anything will stop working - just tell and we will give back your original .htaccess file.

  6. #16
    Michał Podbielski (vBET Staff)
    Join Date
    Oct 2009
    Posts
    3,037

    Default

    I will work using hints like for mod in other subdirectory included here: http://www.vbenterprisetranslator.co....html#post1785
    But to start I need also access to your Admin CP. Please PM it to me

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

    Default

    I had the same before I upgraded is what is getting me on this one. PM'd login data for you.

    Thanks,
    Chris

  8. #18
    Michał Podbielski (vBET Staff)
    Join Date
    Oct 2009
    Posts
    3,037

    Default

    I used instructions from link above ant it is working. At this moment I made it only for page Casino Banks, but same way we can do it for others. Please check normal pages and tell does new issue didn't came. If not then we can add rules for rest of special 'logic' directories. To avoid too much rules I propose to change this one and add all possible logic directories in OR section. We can do it for you - just please check does new issues didn't came because of this change and give us green light for the rest

  9. #19
    Senior Member
    Join Date
    Jun 2010
    Posts
    276

    Default

    I see that works. now I can do without that as I use one file (index.php) to generate all these pages so I would like to include vbet_outside=true and the lang ID into the index instead of the url if possible. then all I need to resolve is the fact the rewrite removes the de/ from casino_guide/

    If that seems to make sense with you as well we can do that easily. If its better for re-writes thats fine as well as long as we resolve the de/ issue. Looking at my indexed pages in google now for domain/de/ its looking real bad with some strange URL's

  10. #20
    Retired ;)
    Join Date
    Aug 2011
    Posts
    441

    Default

    Your .htaccess has been edited, could you please confirm everything works fine?

Page 2 of 3 FirstFirst 123 LastLast

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
  •