PDA

View Full Version : Solved Latest vBET for vB3.8.6 prevents access URGENT



Simon Lloyd
13-05-11, 13:27
Hi last night my site was inaccessible (and still is), i got in touch with my server people who said this:

Vincent: I am getting following error of apache

Vincent: ======================

Vincent: Premature end of script headers: vbenterprisetranslator_seo.php, referer: Ver um Único Post - - O Código Cage Fóruns mostrar essa lista de endereços muda de volta à primeira GAL (http://webcache.googleusercontent.com/search?q=cache:tyanvjVTNpAJ:www.thecodecage.com/forumz/pt/396039-post1.html+exibir+post+unico+twitter&cd=7&hl=pt-BR&ct=clnk&gl=br&client=firefox-a&source=www.google.com.br)

Vincent: Premature end of script headers: vbenterprisetranslator_seo.php, referer: Ver um Único Post - - O Código Cage Fóruns mostrar essa lista de endereços muda de volta à primeira GAL (http://webcache.googleusercontent.com/search?q=cache:tyanvjVTNpAJ:www.thecodecage.com/forumz/pt/396039-post1.html+exibir+post+unico+twitter&cd=7&hl=pt-BR&ct=clnk&gl=br&client=firefox-a&source=www.google.com.br)

Vincent: Premature end of script headers: vbenterprisetranslator_seo.php, referer: Ver um Único Post - - O Código Cage Fóruns mostrar essa lista de endereços muda de volta à primeira GAL (http://webcache.googleusercontent.com/search?q=cache:tyanvjVTNpAJ:www.thecodecage.com/forumz/pt/396039-post1.html+exibir+post+unico+twitter&cd=7&hl=pt-BR&ct=clnk&gl=br&client=firefox-a&source=www.google.com.br)

Vincent: ============================

Vincent: Please contact your developer
I cannot access anything on the forum, not even admincp, what do i do??????????

kamilkurczak
13-05-11, 16:12
Please describe step by step, if you've modified something on your forum, what did you do that to happen it?

did you install some new mods? if yes - disable it and chack that everything is working good.

If not - disable vBET and check the same.

If you can't go to your admincp - just disable all mods by config.php file
paste after <?php this code:

define('DISABLE_HOOKS', true);
in config.php file of Vbulletin

Simon Lloyd
14-05-11, 00:35
It seems the server was compromised and that the error logs had filled up (over 2GB) of the error's i posted above. There was an injection at my .htaccess file and i had to rewrite it, can you check that this is correct format for Microsoft Office Help - Microsoft Office Discussion - Excel VBA Programming - Access Programming (http://www.thecodecage.com/forumz) please

RewriteEngine On

RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]

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)/$ vbenterprisetranslator_seo.php?vbet_lang=$1&redirected=/forumz/ [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)/(.*)?$ vbenterprisetranslator_seo.php?vbet_lang=$1&redirected=/forumz/$2 [L,QSA]


RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron|vbseo_sitemap)
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]


<IfModule mod_deflate.c>
<FilesMatch "\.(php|css|html|xml|txt|js)$">
SetOutputFilter DEFLATE
</FilesMatch>
</IfModule>

<ifmodule mod_headers.c>
<ifmodule mod_deflate.c>

# Compress some text file types
AddOutputFilterByType DEFLATE text/html text/css text/xml application/x-javascript

# Deactivate compression for buggy browsers
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html

</ifmodule>
</ifmodule>
order allow,deny
allow from all

vBET
14-05-11, 14:42
Hi. It is great that your forum is accessible again. I checked it and it is forking and translating fine with one exception - your main page shows error when translated. Most possible that it is .htaccess issue, because you have forum in subdirectory.

The .htaccess you gave seems to be OK and as I told you forum is translated. You have to also add vBET rules into .htacces in your main directory if you want to have translated content outside forum directory. Please see here for manual how to translate pages outside forum directory: http://www.vbenterprisetranslator.com/forum/troubleshooting/6-faq-2.html#post54

Please tell did it help :)

Simon Lloyd
14-05-11, 18:44
Michal, i know very little about running a server or how to write .htaccess, the one i provided was cut and paste from other files and resides in the /forumz folder the one below resides in the /public_html folder, is it correct?
RewriteEngine on

<ifmodule mod_headers.c>
<ifmodule mod_deflate.c>

# Compress some text file types
AddOutputFilterByType DEFLATE text/html text/css text/xml application/x-javascript

# Deactivate compression for buggy browsers
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html

</ifmodule>
</ifmodule>
<IfModule mod_rewrite.c>
#RewriteBase /blog/
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteRule . /blog/index.php [L]
</IfModule>
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /blog/ [L]
<Files 403.shtml>
order allow,deny
deny from 93.143.29.205
deny from 93.142.182.66
deny from 93.142.162.176
allow from all
</Files>

deny from 83.233.30.35

RewriteCond %{HTTP_HOST} ^thecodecage.co.uk$ [OR]
RewriteCond %{HTTP_HOST} ^www.thecodecage.co.uk$
RewriteRule ^.*$ "http\:\/\/www\.thecodecage\.com\/\forumz\/" [R=301,L]

RewriteCond %{HTTP_HOST} ^thecodecage.eu$ [OR]
RewriteCond %{HTTP_HOST} ^www.thecodecage.eu$
RewriteRule ^.*$ "http\:\/\/www\.thecodecage\.com\/" [R=301,L]

RewriteCond %{HTTP_HOST} ^thecodecage.org$ [OR]
RewriteCond %{HTTP_HOST} ^www.thecodecage.org$
RewriteRule ^.*$ "http\:\/\/www\.thecodecage\.com\/" [R=301,L]

RewriteCond %{HTTP_HOST} ^thecodecage.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.thecodecage.com/$
RewriteRule ^/?$ "http\:\/\/www\.thecodecage\.com\/" [R=301,L]

RewriteCond %{HTTSP_REFERER} !^https://www.paypal.com/.*$ [NC]
RewriteCond %{HTTPS_REFERER} !^https://www.paypal.com$ [NC]

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]


RewriteCond %{HTTP_REFERER} !^http://skype.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://skype.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://thecodecage.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://thecodecage.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.paypal.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.paypal.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.skype.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.skype.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.thecodecage.co.uk/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.thecodecage.co.uk$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.thecodecage.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.thecodecage.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.thecodecage.com/forumz/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.thecodecage.com/forumz$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.thecodecage.com/forumz/images/avatars/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.thecodecage.com/forumz/images/avatars$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.thecodecage.com/golf/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.thecodecage.com/golf$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.thecodecage.eu/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.thecodecage.eu$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.thecodecage.org/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.thecodecage.org$ [NC]
RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ - [F,NC]

kamilkurczak
17-05-11, 21:25
ok I will analize it

Simon Lloyd
17-05-11, 22:15
thanks Kamil, i think i have everything correct so don't know why the page wont translate.

kamilkurczak
17-05-11, 22:26
firstly, I noticed that you have only one line with language code, you need to have two lines:


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]

Simon Lloyd
17-05-11, 22:42
Ok added those but still no translation :(

kamilkurczak
17-05-11, 22:51
so now your htaccess should looks like:

RewriteEngine on

<ifmodule mod_headers.c>
<ifmodule mod_deflate.c>

# Compress some text file types
AddOutputFilterByType DEFLATE text/html text/css text/xml application/x-javascript

# Deactivate compression for buggy browsers
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html

</ifmodule>
</ifmodule>
<IfModule mod_rewrite.c>
#RewriteBase /blog/
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteRule . /blog/index.php [L]
</IfModule>
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /blog/ [L]
<Files 403.shtml>
order allow,deny
deny from 93.143.29.205
deny from 93.142.182.66
deny from 93.142.162.176
allow from all
</Files>

deny from 83.233.30.35

RewriteCond %{HTTP_HOST} ^thecodecage.co.uk$ [OR]
RewriteCond %{HTTP_HOST} ^www.thecodecage.co.uk$
RewriteRule ^.*$ "http\:\/\/www\.thecodecage\.com\/\forumz\/" [R=301,L]

RewriteCond %{HTTP_HOST} ^thecodecage.eu$ [OR]
RewriteCond %{HTTP_HOST} ^www.thecodecage.eu$
RewriteRule ^.*$ "http\:\/\/www\.thecodecage\.com\/" [R=301,L]

RewriteCond %{HTTP_HOST} ^thecodecage.org$ [OR]
RewriteCond %{HTTP_HOST} ^www.thecodecage.org$
RewriteRule ^.*$ "http\:\/\/www\.thecodecage\.com\/" [R=301,L]

RewriteCond %{HTTP_HOST} ^thecodecage.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.thecodecage.com/$
RewriteRule ^/?$ "http\:\/\/www\.thecodecage\.com\/" [R=301,L]

RewriteCond %{HTTSP_REFERER} !^https://www.paypal.com/.*$ [NC]
RewriteCond %{HTTPS_REFERER} !^https://www.paypal.com$ [NC]

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]


RewriteCond %{HTTP_REFERER} !^http://skype.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://skype.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://thecodecage.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://thecodecage.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.paypal.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.paypal.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.skype.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.skype.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.thecodecage.co.uk/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.thecodecage.co.uk$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.thecodecage.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.thecodecage.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.thecodecage.com/forumz/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.thecodecage.com/forumz$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.thecodecage.com/forumz/images/avatars/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.thecodecage.com/forumz/images/avatars$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.thecodecage.com/golf/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.thecodecage.com/golf$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.thecodecage.eu/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.thecodecage.eu$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.thecodecage.org/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.thecodecage.org$ [NC]
RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ - [F,NC]

Simon Lloyd
17-05-11, 23:00
Yes, exactly like that but when translating the page cannot be found and you get my oops page if i choose spanish i get this url www.thecodecage.com/es/ is this where the error is?

kamilkurczak
17-05-11, 23:08
I think that some lines from this htaccess file cause this issue (not vBET rules).
hmm what happens when you comment lines after vBET rules:

RewriteCond %{HTTP_REFERER} !^http://skype.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://skype.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://thecodecage.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://thecodecage.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.paypal.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.paypal.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.skype.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.skype.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.thecodecage.co.uk/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.thecodecage.co.uk$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.thecodecage.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.thecodecage.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.thecodecage.com/forumz/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.thecodecage.com/forumz$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.thecodecage.com/forumz/images/avatars/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.thecodecage.com/forumz/images/avatars$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.thecodecage.com/golf/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.thecodecage.com/golf$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.thecodecage.eu/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.thecodecage.eu$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.thecodecage.org/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.thecodecage.org$ [NC]
RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ - [F,NC]

you can test if for all rules (except vBET rules)

Simon Lloyd
17-05-11, 23:13
I removed all of those but still cannot find the page? (get my oops page)

Simon Lloyd
17-05-11, 23:20
When i use this as .htaccess it works but i need the other rules, can you help?
RewriteEngine on

<ifmodule mod_headers.c>
<ifmodule mod_deflate.c>

# Compress some text file types
AddOutputFilterByType DEFLATE text/html text/css text/xml application/x-javascript

# Deactivate compression for buggy browsers
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html

</ifmodule>
</ifmodule>

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]

Simon Lloyd
17-05-11, 23:30
laptop about to run out now will be back on tomorrow

vBET
18-05-11, 03:42
Hi.

Perhaps rules which are before vBET rules made redirection first so you get page not found. vBET rules are not active at all. That is why when you removed rules before it starts working. Please just try to put vBET rules before others and see how it is working.

But first please try go back to what you had here (http://www.vbenterprisetranslator.com/forum/troubleshooting/1835-latest-vbet-vb3-8-6-prevents-access-urgent.html#post8477) and just remove this:


RewriteCond %{HTTSP_REFERER} !^https://www.paypal.com/.*$ [NC]
RewriteCond %{HTTPS_REFERER} !^https://www.paypal.com$ [NC]


You added conditions for vBET rule and perhaps this is why first rule is not working - and first rule is for main page. Please check it.

Simon Lloyd
18-05-11, 05:24
Thanks for your continued help, the PayPal redirect was not preventing it working, but after much trial and error this is what worked, i replaced this:
RewriteEngine on

<ifmodule mod_headers.c>
<ifmodule mod_deflate.c>

# Compress some text file types
AddOutputFilterByType DEFLATE text/html text/css text/xml application/x-javascript

# Deactivate compression for buggy browsers
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html

</ifmodule>
</ifmodule>

<IfModule mod_rewrite.c>
#RewriteBase /blog/
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteRule . /blog/index.php [L]
for this:
RewriteEngine on

<ifmodule mod_headers.c>
<ifmodule mod_deflate.c>

# Compress some text file types
AddOutputFilterByType DEFLATE text/html text/css text/xml application/x-javascript

# Deactivate compression for buggy browsers
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html

</ifmodule>
</ifmodule>
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]

<IfModule mod_rewrite.c>
#RewriteBase /blog/
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteRule . /blog/index.php [L]
and it works, although i now need to work out how to get the page not found redirect to go back to the oops page but i can live with what i have for now :)

kamilkurczak
18-05-11, 20:34
can you confirm that this is solved now? I was on your site and translation works good

Simon Lloyd
18-05-11, 20:49
Kamil, as far as vBET is concerned it is solved as my vbulletin powered page outside of the forum root now translates. The remaining issue is now mine in order to redirect a url that isn't found to my custom page.

So please mark this solved :)

kamilkurczak
18-05-11, 21:07
thanks for your confirmation - solved! :)

AfrikaansAlbanianArabicBelarusianBulgarianCatalanChineseCroatianCzechDanishDutchEnglishEstonianFilipinoFinnishFrenchGalicianGermanGreekHaitian CreoleHebrewHindiHungarianIcelandicIndonesianIrishItalianJapaneseKoreanLatvianLithuanianMacedonianMalayMalteseNorwegianPersianPolishPortugueseRomanianRussianSerbianSlovakSlovenianSpanishSwahiliSwedishTaiwaneseThaiTurkishUkrainianVietnameseWelshYiddish
Languages translations supported by vBET 4.9.2