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 5 of 5

Thread: SEO issue

  1. #1
    Junior Member
    Join Date
    Jun 2010
    Posts
    3

    Question SEO issue

    Hi,

    I'm having an issue with getting the correct paths for when I enable the SEO option "Create URL's according to SEO link consensus (i.e. '/en/address')". I don't have vBSEO installed and am running vB Suite, with my home page being site.com and my forum at site.com/forum.

    With the "Forum directory" option left blank the following occurs;
    On site.com, successful translation to site.com/lang but when trying to go to the forum it goes to site.com/lang/forum.php, which returns a 404 error.
    On site.com/forum, successful translation to site.com/forum/lang but the translation is lost when returning to site.com.

    With the "Forum directory" set to /forum the following occurs;
    On site.com, translation tries to go to site.com/forum/lang, which returns a 404 error.
    On site.com/forum, translation goes to site.com/forum/lang/forum.php, which returns a 404 error.

    In the default vB settings of "Site Name / URL / Contact Details", my forum URL is set to site.com/forum and my homepage to site.com

    My .htaccess file is;
    ##Translation Mod Stuff##

    RewriteEngine On

    RewriteRule ^/?(af|sq|ar|be|bg|ca|zh-CN|hr|cs|da|nl|en|et|tl|fi|fr|gl|de|el|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|vi|cy|yi)/archive/index.php/(.*)?$ archive/index.php?/$2&language=$1 [L,QSA]
    RewriteRule ^/?(af|sq|ar|be|bg|ca|zh-CN|hr|cs|da|nl|en|et|tl|fi|fr|gl|de|el|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|vi|cy|yi)/$ index.php?language=$1 [L,QSA]
    RewriteRule ^/?(af|sq|ar|be|bg|ca|zh-CN|hr|cs|da|nl|en|et|tl|fi|fr|gl|de|el|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|vi|cy|yi)/(.*)?$ $2?language=$1 [QSA]
    I'm sure it's a setting I've configured wrong somewhere, but can't figure out where. Any ideas?

    EDIT: Disabled SEO for now as I'm running into a few other issues with it.
    Last edited by Gaming Perfection; 02-10-10 at 18:55.

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

    Default

    Checking in. Will give answer in few minutes

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

    Default

    OK so. Your forum uses sub directory in URL. That is why you have to made special integration steps to be able to translate pages outside the forum (any URL outside forum directory is not catch by .htaccess rules for vBET).

    So first - please set everything right for SEO links in forum. For a moment please forget about other places and set it right just for forum pages. It is the base. Without forum working fine you cannot make the rest working. As I saw at this moment you have SEO disabled, so please enable it again. And set vBET rules in .htaccess file which is INSIDE of forum directory.

    Next part is to integrate pages outside forum directory. Please fallow those steps: http://www.vbenterprisetranslator.co....html#post1546
    Please note that you will NOT made any changes in already working .htacces for forum directory. Read instructions carefully - those are about .htaccess for site root directory.

    If you have any issues with 1st or 2nd part - please write

  4. #4
    Junior Member
    Join Date
    Jun 2010
    Posts
    3

    Default

    Ah, I didn't realise I needed a .htaccess in both my home directory and forum sub-directory. I've managed to get it working now, thanks for the help.

    ************

    For anyone else that has the same problem and stumbles across this thread...
    Quote Originally Posted by HOME DIRECTORY .htaccess
    RewriteEngine On
    RewriteRule ^/?(af|sq|ar|be|bg|ca|zh-CN|hr|cs|da|nl|en|et|tl|fi|fr|gl|de|el|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|vi|cy|yi)/$ index.php?language=$1&vbet_outside=true [L,QSA]
    RewriteRule ^/?(af|sq|ar|be|bg|ca|zh-CN|hr|cs|da|nl|en|et|tl|fi|fr|gl|de|el|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|vi|cy|yi)/(.*)?$ $2?language=$1&vbet_outside=true [L,QSA]
    Quote Originally Posted by FORUM SUB DIRECTORY .htaccess
    RewriteEngine On
    RewriteRule ^/?(af|sq|ar|be|bg|ca|zh-CN|hr|cs|da|nl|en|et|tl|fi|fr|gl|de|el|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|vi|cy|yi)/archive/index.php/(.*)?$ archive/index.php?/$2&language=$1 [L,QSA]
    RewriteRule ^/?(af|sq|ar|be|bg|ca|zh-CN|hr|cs|da|nl|en|et|tl|fi|fr|gl|de|el|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|vi|cy|yi)/$ index.php?language=$1 [L,QSA]
    RewriteRule ^/?(af|sq|ar|be|bg|ca|zh-CN|hr|cs|da|nl|en|et|tl|fi|fr|gl|de|el|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|vi|cy|yi)/(.*)?$ $2?language=$1 [QSA]

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

    Default

    Glad you can enjoy vBET!

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
  •