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 1 of 3 123 LastLast
Results 1 to 10 of 23

Thread: Translated forum links showing 404 errors

  1. #1
    Junior Member
    Join Date
    Jul 2011
    Posts
    12

    Exclamation Translated forum links showing 404 errors

    I've got through this install process several times now and I can't seem to fix these 404 errors.

    Problem: Translated forum links are creating 404 errors (index and thread urls seem to work)

    URL: phoneforum.com/forums/

    Friendly URLS: I'm using Mode Rewrite Friendly URLs - Canonical URL Strict

    vBet Main: Forum Directorys /forums

    My Forum htaccess is as follows

    # Author: Matty Asia
    # Version 1.6

    RewriteEngine On
    Options +FollowSymLinks
    RewriteBase /forums/


    ### THIS IS A LITTLE EXTRA SECURITY AND CAN BE REMOVED

    RewriteRule ^includes/(.*) index.php
    RewriteRule ^vb/(.*) index.php
    RewriteRule ^packages/(.*) index.php

    ### THIS IS THE ACTUAL REWRITE

    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)/archive/index.php/(.*)?$ archive/index.php?/$2&language=$1 [L,QSA]
    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)/$ index.php?language=$1 [L,QSA]
    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 [QSA]

    RewriteRule ^threads/([0-9]+)(?:/?$|(?:-[^/]+))(?:/?$|(?:/page([0-9]+)?)) showthread.php?t=$1&page=$2&%{QUERY_STRING}
    RewriteRule ^members/([0-9]+) member.php?u=$1&%{QUERY_STRING}
    RewriteRule ^forums/([0-9]+)(?:/?$|(?:-[^/]+))(?:/?$|(?:/page([0-9]+)?)) forumdisplay.php?f=$1&page=$2&%{QUERY_STRING}
    RewriteRule ^blogs/([0-9]+)(?:/?$|(?:-[^/]+))(?:/?$|(?:/page([0-9]+)?)) blog.php?u=$1&page=$2&%{QUERY_STRING}
    RewriteRule ^entries/([0-9]+)(?:/?$|(?:-[^/]+))(?:/?$|(?:/page([0-9]+)?)) entry.php?b=$1&page=$2&%{QUERY_STRING}
    RewriteRule ^list/([^/]*/)([0-9]+) list.php?r=$1$2&%{QUERY_STRING}
    RewriteRule ^content/(.*) content.php?r=$1&%{QUERY_STRING}
    RewriteRule ^widget/config/([0-9]+) widget.php?r=config/$1&%{QUERY_STRING}

    Any idea what I'm doing wrong?

    TIA!
    Last edited by vBET; 31-07-11 at 13:16. Reason: Reversed original texans message

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

    Default

    As I see right now it is working well. Do you still have issue or it is fixed already?

    Please tell do you still need help and if yes, then please give page URL where the issue exists.

  3. #3
    Junior Member
    Join Date
    Jul 2011
    Posts
    12

    Default

    Thanks for the reply!

    No, it is still not working correctly. The index page and threads work but the individual forum category links don't.

    ex: phoneforum.com/forums/da/36-Canadiske-Wireless-Carriers

    One thing I notice versus this forum is that my actual forum category links are translated which this forum maintains the english URL even when using a non-english translation.

    I feel like this is the issue (I could be wrong) but I'm not sure how to change that.

    Thanks again for the reply.
    Last edited by vBET; 31-07-11 at 13:20. Reason: Reversing original texans message - autor tries to change thread history

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

    Default

    The example you gave is to not existing content - it doesn't work even when not translated:
    phoneforum.com/forums/36-Canadiske-Wireless-Carriers

    I still cannot see any issue - I was there and I see content is translated well. Please show me URL where I can see it - the one you gave doesn't exists so it cannot be translated...

  5. #5
    Junior Member
    Join Date
    Jul 2011
    Posts
    12

    Default

    Right, This is the problem exactly.

    This is the default forum category referenced in the default English view:
    phoneforum.com/forums/forums/36-Canadian-Wireless-Carriers

    I referenced what happens when it is translated. The actual link URL gets translated as well and results in a 404.

    phoneforum.com/forums/da/36-Canadiske-Wireless-Carriers

    The forum category links don't work when translated to any language from English. They all result in 404 error pages. The index and threads do work when translated, just not the forum category links.
    Last edited by vBET; 31-07-11 at 13:22. Reason: Reversed texns original message - author tries to change thread history

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

    Default

    OK - now I see the issue. It is only for forum URL not for threads - I was looking in wrong place.

    I see the cause of issue links are redirected and 2nd /forums/ is removed from there. Setting:
    http://www.phoneforum.com/forums/pl/...ezprzewodowych
    I'm redirected to:
    http://www.phoneforum.com/forums/pl/...ezprzewodowych

    I do not know why it happens like that. Maybe you have wrong vBET configuration for forum directory. Or we can try with setting keep directory for it (shouldn't be needed). Please PM me Access details to your Admin CP and FTP - I will check it.

  7. #7
    Junior Member
    Join Date
    Jul 2011
    Posts
    12

    Default

    Thanks Michal

    PM Coming
    Last edited by vBET; 31-07-11 at 13:23. Reason: Reversed texans original message - author trying to change thread history

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

    Default

    As I wrote you yesterday by PM the issue is because you have double /forums in your URL. vBET removes one of those because it is same as your forum directory and vBET must assure that language code will be AFTER it. So forum directory is removed and then added again in front of URL just before language code. To avoid this and to have your forum links appropriately generated you must use this quick fix after each vBET update (now it is already done on your forum):
    1. Open /includes/vbenterprisetrasnlator_functions_url_tracking.php
    2. Find:
    Code:
    if (0 === strpos($address, $vbulletin->options['vbenterprisetranslator_forumdir'].'/')) {
    $address = substr($address, strlen($vbulletin->options['vbenterprisetranslator_forumdir']));
    }
    3. Remove/comment it.

    This will solve issue with wrong URLs generation. Still you have issue with redirection. I'm still working on it.

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

    Default

    Any of Access Details you send is not working anymore - I'm not able to finish the job... Please PM appropriate access details so I will be able to continue.

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

    Default

    As got info by PM you are planning to change tour /forums/forums links and do not need our support right now. I'm setting this thread as solved. If you will have same issue after your changes please write here. In case of other issues please open one thread per one issue.

Page 1 of 3 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
  •