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 4 123 ... LastLast
Results 1 to 10 of 32

Thread: Flag url is incorrect

  1. #1
    Senior Member
    Join Date
    Feb 2011
    Posts
    138

    Default Flag url is incorrect

    If I enter
    PHP Code:
    www.xxxxxx.com/forum/de
    manually into the browser address bar and hit enter all is good. However when I enable the German flag and hit that it btries to open
    PHP Code:
    www.xxxxxx.com/de/forum
    Any ideas?
    Last edited by norku; 05-04-11 at 17:21.

  2. #2
    vBulletin Enterprise Translator (vBET) Staff
    Join Date
    May 2010
    Posts
    1,000

    Default

    I have some questions to you:
    1. why you made this changes for vBSEO? described here:
    http://www.vbenterprisetranslator.co....html#post7479
    2. If you make a .htaccess in /forum will be not good?
    3. you have this links because now in on .htaccess you have two groups of vBET rules:
    - to translate main page
    - to translate forum

    Maybe we can make two .htaccess file? one like your old one and the second in /forum folder?

    you can try it.
    first .htaccess (the old one) placed outside forum folder:
    Code:
    # Comment the following line (add '#' at the beginning)
    # to disable mod_rewrite functions.
    # Please note: you still need to disable the hack in
    # the vBSEO control panel to stop url rewrites.
    RewriteEngine On
    
    # Some servers require the Rewritebase directive to be
    # enabled (remove '#' at the beginning to activate)
    # Please note: when enabled, you must include the path
    # to your root vB folder (i.e. RewriteBase /forums/)
    #RewriteBase /
    
    
    #RewriteCond %{HTTP_HOST} !^www\.hj-research\.com
    RewriteCond %{HTTP_HOST} !(^www\.hj-research\.com$|^cdn\.hj-research\.com$)
    RewriteRule (.*) http://www.hj-research.com/$1 [R=301,L]
    
    #RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com
    #RewriteRule (.*) http://www.yourdomain.com/forum/$1 [L,R=301]
    
    RewriteRule ^forum/((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ forum/vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
    
    #vbet translator rules start
    #vbet outside site
    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]
    
    RewriteCond %{QUERY_STRING} !vbet_outside=true
    RewriteRule ^(.*)$ $1?vbet_outside=true [L,QSA]
    
    
    
    #vbet translator rules end
    
    
    RewriteCond %{REQUEST_URI} !(media/|admincp/|modcp/|cron|vbseo_sitemap)
    RewriteRule ^forum/((archive/)?(.*\.php(/.*)?))$ forum/vbseo.php [L,QSA]
    
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !/(media|admincp|modcp|clientscript|cpstyles|images)/
    RewriteRule ^(.+)$ forum/vbseo.php [L,QSA]
    
    ## Expires
    <ifModule mod_expires.c>
    	ExpiresActive On
    	ExpiresDefault "access plus 1 seconds"
    	ExpiresByType text/html "access plus 1 seconds"
    	ExpiresByType image/gif "access plus 3456000 seconds"
    	ExpiresByType image/jpeg "access plus 3456000 seconds"
    	ExpiresByType image/png "access plus 3456000 seconds"
    	ExpiresByType text/css "access plus 3456000 seconds"
    	ExpiresByType text/javascript "access plus 3456000 seconds"
    	ExpiresByType application/javascript "access plus 3456000 seconds"
    	ExpiresByType application/x-javascript "access plus 3456000 seconds"
    </ifModule>
    
    ## Compression
    <ifmodule mod_headers.c>
    	<ifmodule mod_deflate.c>
    		AddOutputFilterByType DEFLATE text/html text/css text/xml application/x-javascript
    		BrowserMatch ^Mozilla/4 gzip-only-text/html
    		BrowserMatch ^Mozilla/4\.0[678] no-gzip
    		BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
    	</ifmodule>
    </ifmodule>
    
    #Remove index.php from hj-research.com/index.php
    #rewrite engine on 
    RewriteCond %{THE_REQUEST} index\.php
    RewriteCond %{QUERY_STRING} ^$
    RewriteRule ^index\.php$ / [L,R=301]
    and the second in /forum folder (only vBET rules):
    Code:
    # Comment the following line (add '#' at the beginning)
    # to disable mod_rewrite functions.
    # Please note: you still need to disable the hack in
    # the vBSEO control panel to stop url rewrites.
    RewriteEngine On
    
    
    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)/$ vbenterprisetranslator_seo.php?vbet_lang=$1&redirected=/ [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)/(.*)?$ vbenterprisetranslator_seo.php?vbet_lang=$1&redirected=/$2 [L,QSA]
    
    RewriteCond %{REQUEST_URI} !(admincp/|modcp/|vbseo_sitemap/|cron)
    RewriteRule ^((archive/)?(.*.php(/.*)?))$ vbenterprisetranslator_seo.php [L,QSA]
    
    
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !^(admincp|modcp|clientscript|cpstyles|images)/
    RewriteRule ^(.+)$ vbenterprisetranslator_seo.php [L,QSA]
    
    
    
    #vbet translator rules end
    can you test it? I am waiting for conclusion. If still not - DELETE .htaccess from /forum folder and the old .htaccess replace with this one (because with this htaccess vBET works perfect for forum and not work for main page):
    Code:
    # Comment the following line (add '#' at the beginning)
    # to disable mod_rewrite functions.
    # Please note: you still need to disable the hack in
    # the vBSEO control panel to stop url rewrites.
    RewriteEngine On
    
    # Some servers require the Rewritebase directive to be
    # enabled (remove '#' at the beginning to activate)
    # Please note: when enabled, you must include the path
    # to your root vB folder (i.e. RewriteBase /forums/)
    #RewriteBase /
    
    
    #RewriteCond %{HTTP_HOST} !^www\.hj-research\.com
    RewriteCond %{HTTP_HOST} !(^www\.hj-research\.com$|^cdn\.hj-research\.com$)
    RewriteRule (.*) http://www.hj-research.com/$1 [R=301,L]
    
    #RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com
    #RewriteRule (.*) http://www.yourdomain.com/forum/$1 [L,R=301]
    
    RewriteRule ^forum/((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ forum/vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
    
    #vbet translator rules start
    
    RewriteRule ^forum/?(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)/$ forum/vbenterprisetranslator_seo.php?vbet_lang=$1&redirected=/ [L,QSA]
    RewriteRule ^forum/?(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)/(.*)?$ forum/vbenterprisetranslator_seo.php?vbet_lang=$1&redirected=/$2 [L,QSA]
    
    RewriteCond %{REQUEST_URI} !(admincp/|modcp/|vbseo_sitemap/|cron)
    RewriteRule ^forum/((archive/)?(.*.php(/.*)?))$ forum/vbenterprisetranslator_seo.php [L,QSA]
    
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !^(admincp|modcp|clientscript|cpstyles|images)/
    RewriteRule ^(.+)$ forum/vbenterprisetranslator_seo.php [L,QSA]
    
    #vbet translator rules end
    
    
    RewriteCond %{REQUEST_URI} !(media/|admincp/|modcp/|cron|vbseo_sitemap)
    RewriteRule ^forum/((archive/)?(.*\.php(/.*)?))$ forum/vbseo.php [L,QSA]
    
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !/(media|admincp|modcp|clientscript|cpstyles|images)/
    RewriteRule ^(.+)$ forum/vbseo.php [L,QSA]
    
    ## Expires
    <ifModule mod_expires.c>
    	ExpiresActive On
    	ExpiresDefault "access plus 1 seconds"
    	ExpiresByType text/html "access plus 1 seconds"
    	ExpiresByType image/gif "access plus 3456000 seconds"
    	ExpiresByType image/jpeg "access plus 3456000 seconds"
    	ExpiresByType image/png "access plus 3456000 seconds"
    	ExpiresByType text/css "access plus 3456000 seconds"
    	ExpiresByType text/javascript "access plus 3456000 seconds"
    	ExpiresByType application/javascript "access plus 3456000 seconds"
    	ExpiresByType application/x-javascript "access plus 3456000 seconds"
    </ifModule>
    
    ## Compression
    <ifmodule mod_headers.c>
    	<ifmodule mod_deflate.c>
    		AddOutputFilterByType DEFLATE text/html text/css text/xml application/x-javascript
    		BrowserMatch ^Mozilla/4 gzip-only-text/html
    		BrowserMatch ^Mozilla/4\.0[678] no-gzip
    		BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
    	</ifmodule>
    </ifmodule>
    
    #Remove index.php from hj-research.com/index.php
    #rewrite engine on 
    RewriteCond %{THE_REQUEST} index\.php
    RewriteCond %{QUERY_STRING} ^$
    RewriteRule ^index\.php$ / [L,R=301]

  3. #3
    Senior Member
    Join Date
    Feb 2011
    Posts
    138

    Default

    Hi,

    I'll look into this now. Thanks. Can you expalin exactly what these htaccess files do?
    Last edited by norku; 10-03-11 at 11:05.

  4. #4
    vBulletin Enterprise Translator (vBET) Staff
    Join Date
    May 2010
    Posts
    1,000

    Default

    please, check PM.

    You made a bad .htaccess.
    you pasted vBET rules on the end of file! that was bad - please make a htaccess files like from my previoust post

  5. #5
    Senior Member
    Join Date
    Feb 2011
    Posts
    138

    Default

    I didn't. I removed them. I have now uploaded your htaccess from the post above and the server error is now rectified. There is a problem with sitemaps which I noticed earlier. They cannot be found by google

  6. #6
    vBulletin Enterprise Translator (vBET) Staff
    Join Date
    May 2010
    Posts
    1,000

    Default

    please if you can - answer on my questions one by one - will be easy to find the best solution.
    http://www.vbenterprisetranslator.co....html#post7535

  7. #7
    Senior Member
    Join Date
    Feb 2011
    Posts
    138

    Default

    I made the changes HERE because I wanted a more consistent structure without having to move the vb suite to the root. It works nicely but with vbet there are clearly problems if a forum has my configuration.


    With vbet enabled I am currently seeing the following problems:

    1. Foreign characters are not recognised when I perform a search on the forum (the /de/ version of the forum). Try searching for Düsseldorf. No results even though I have results on the forum. Look at the way the word 'Düsseldorf' is returned on the search page. If I go to the english (default) version of the forum and perform the same search I get the correct results.

    2. This is currently in the google index: http://ww w.xxxx.com/forum/f34/faehnlein-standard-bearer-insignia-wear-3514/ but look at the url when that page opens on my forum.

    3. Sitemaps are not being seen by google webmaster tools. I have not made any of the changes detailed here: http://www.vbenterprisetranslator.co...tegration.html

    4. View the english version of the forum and go to this url: http://w ww.xxxx.com/forum/f27/hj-gebietsjugendtag-düsseldorf-1933-schlageter-2060/ Page loads but with 404, url shows german character but if you right copy and paste that url you get: http://w ww.hj-research.com/forum/de/f27/hj-gebietsjugendtag-düsseldorf-1933-schlageter-2060/

    5. I have set Replace Non-English Characters in URLs? to yes for now until this problem is resolved so you may need to set to 'keep non-English characters' to view the problems I have desribed above.

    Looking forward to hearing from you.
    Last edited by norku; 22-05-12 at 09:34.

  8. #8
    vBulletin Enterprise Translator (vBET) Staff
    Join Date
    May 2010
    Posts
    1,000

    Default

    1, I will check it on my test forum
    2. I tried this url and i can't see the issue - everything is good
    3. so please integrate this sitemap using this instruction (from this url)
    4. please, if you want to have seo links translated - integrate vbseo with vbet - edit two vbseo files - everything is described in readme.html file.
    about option in vbseo - if you would like to translate seo links - you should set it like in readme.html because if you not set it - you will have 404 (if you integrate two vbseo files)

  9. #9
    Senior Member
    Join Date
    Feb 2011
    Posts
    138

    Default

    2. Yes, the url is the same but as I said at point 5 above you will need to set 'keep non-English characters in URLs' within vbseo to see what I mean. This setting is stipulated in your install instructions but does not work on my forum.

    4. Those changes are already implemented. If you look you'll see that the files are on the server. The '...._old.php' files are the standard vbseo files. The vbet versions of those files are currently active.

    Until the non-English character problem is solved I'm not going to mess around with the sitemap unless you can tell me that the current problem (google can't see my sitemaps) is because I haven't yet applied the changes here? If yes then I'll change that file but I need to know exactly why the sitemaps are not being seen by google before I do anything because I don't want to give google a load of incorrect URLs.
    Last edited by norku; 10-03-11 at 14:03.

  10. #10
    vBulletin Enterprise Translator (vBET) Staff
    Join Date
    May 2010
    Posts
    1,000

    Default

    ok I see when translation of url is enabled - you have 404.
    according to the readme.html instruction you should have - Keep Non-English Characters in URLs. If not work - please disable it. I will chek it for you but I need access to vbseocp.

    2. about sitemp. Maybe this is not detected by google because I made for you .htaccess in /forum folder. We can simply test it. Just disable vBET and delete .htaccess from /forum. comment vbet rules in main .htaccess and restore old vbseo files. After that (when vBET is completly disabled) check this sitemap and we will knot that vBET provide this issue or not.

    3. This evening I will check for you configuration and integration with vBSEO

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