Ok first of all let me say that I am aware that discussion on the vBulletin modification called Global Translator has been closed. A new mod called vBulletin Enterprise Translator has come to take its place and with it I hope I can do my part and help the author create a mod that is more inline with vBSEO and Google standards. I was the one who wrote the code to send an API key from google along with translation requests and I want to help more.
The link for vBulletin Enterprise Translator is here:
vB Enterprise Translator - vBulletin.org Forum
I understand that the consensus of the vBSEO guys was that the mod went against the link consensus principle and did some other bad SEO things.
What I am currently trying to do is rewrite my urls from the old format of www.website.com/page.html?hl=LANG to www.website.com/LANG/page.html
You may say that this has been proposed before and the issue is that english language pages would have to be changed to the format: www.website.com/en/page.html but I do not agree that this has to be so.
I am sure there is a way to make all of the translated pages(for example, danish) be like this: www.website.com/da/page.html while retaining the english language as www.website.com/page.html
Up until now I have been trying to do this with some simple mod_rewrite rules like so:
What this code does is check and see if the directory in the beginning of the url is two characters, if it is and the URI doesn't correspond to any real file or directory, then it will rewrite the url with the "hl" variable and append any other variables.Code:RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(..)/(.*)$ $2?hl=$1 [L,QSA]
I have rewritten these rules so many times trying different flags like N and no flags at all but without the L flag it doesn't seem to work at all. This doesn't make sense to me because I have other rewrite rules that rewrite things like videos.html to index.php?page=videos and those rules are still executed even though they are AFTER the language rules.
Even though the rules do no make sense, they seem to be working. The issue I am having is that this approach is working fine with NON-VBSEO urls, but if it is any url that VBSEO rewrites, like a showthread url, VBSEO will take the LANG part of the url out and the translation does not happen.
I have been looking through the vbseo code for a while but unfortunately I cannot seem to find the place where this rewriting takes place.
What I want to do is have vbseo rewrite these urls properly with the LANG portion intact for translated pages while retaining the ORIGINAL url rewriting format for english pages.
I know I shouldn't expect any official support for this problem but I was hoping there is somebody out there that can show me the path![]()


LinkBack URL
About LinkBacks








