PDA

View Full Version : vBSEO integration



vBET
14-11-09, 13:34
vBET can be integrated with vBSEO to support SEO translation links and also to translate titles inside links for threads.

IMPORTANT: if you use vBET 4.x with vBSEO you have to make full integration - it means that before setting .htaccess rules you MUST do all steps described in installation instructions in vBSEO Integration section. For vBET 2.x users just make .htaccess part (2 files changes required).

To integrate vBET with vBSEO edit .htaccess file:
JUST BEFORE all rules to vbseo.php put only one of these two types of rules:

- SHORT RULES
Faster and more efficient but can be used only if you are NOT using links with 2-signs part i.e: yourforum.com/XY/



RewriteRule ^/?(..|zh-CN|zh-TW)/$ vbenterprisetranslator_seo.php?vbet_lang=$1&redirected=/ [L,QSA]
RewriteRule ^/?(..|zh-CN|zh-TW)/(.*)?$ 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]



If your forum use subdirectory in URL, then change 2 first rules adding your forum directory with leading '/' just after redirected=. So i.e. if your forum is in forum directory then you will have redirected=/forum/index.php and redirected=/forum/$2



- LONG RULES
Can by used always



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=/ [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=/$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]



If your forum use subdirectory in URL, then change 2 first rules adding your forum directory with leading '/' just after redirected=. So i.e. if your forum is in forum directory then you will have redirected=/forum/index.php and redirected=/forum/$2

badawidollah
26-03-10, 15:18
i dont see rules at my vbseo.php

badawidollah
26-03-10, 15:20
<?php
error_reporting(0);

include_once(dirname(__FILE__).'/vbseo/includes/functions_vbseo.php');
include_once(vBSEO_Storage::path('vbinc') . '/' . VBSEO_VB_CONFIG);

vbseo_requested_url();

$vbseo_fullurl = VBSEO_TOPREL . $vbseo_url_;
$vbseo_url_suggest = '';

switch ($vbseo_url_)
{
case 'vbseo.php':
exit;
break;

case 'vbseo_sitemap.php':
case 'vbseocp.php':
case 'cron.php':
case 'cron.html':

include $vbseo_url_;

exit;
break;
}

// vBSEO - full version start \************************************--
if (VBSEO_IN_PINGBACK && ($vbseo_url_ == 'vbseo-xmlrpc/'))
{
if (!defined('THIS_SCRIPT'))
@define('THIS_SCRIPT', 'newreply');
include dirname(__FILE__) . '/global.' . VBSEO_VB_EXT;
vbseo_extra_inc('linkback');
vbseo_xmlrpc_proc();
exit;
}

if (VBSEO_REDIRECT_PRIV_EXTERNAL && ($vbseo_url_ == VBSEO_REDIRECT_URI))
{
$uredir = $_GET['redirect'];
//$uredir = urldecode($uredir);
$uredir = preg_replace('#&(?![a-z0-9\#]+;)#si', '&amp;', $uredir);
$uredir = str_replace('"', '&quot;', $uredir);
//$uredir = str_replace(' ', '%20', $uredir);
if (preg_match('#^https?:\/\/#', $uredir) && !preg_match('#["<>]#', $uredir))
{
echo '<html><head><meta http-equiv="refresh" content="0;url=' . $uredir . '"></head><body></body></html>';
exit;
}
}


and more
no rewritecond there

vBET
26-03-10, 21:18
i dont see rules at my vbseo.php

Rules are in .htaccess file. Instruction do NOT say to edit vbseo.php - it says to edit .haccess file and to put additional content before RULES TO vbseo.php. Please go to your .htaccess file and you will find there rules for vbseo.php :)

badawidollah
27-03-10, 05:48
my .httaccess in my forum root (in http://www.nusantaraku.org/forum/.httaccess

i must follow below this too?

Now - if your forum use subdirectory in URL, then change 2 first rules adding your forum directory with leading '/' just after redirected=. So i.e. if your forum is in forum directory then you will have redirected=/forum/index.php and redirected=/forum/$2

**without add that, my forum can translate too (but multi languages not support)

badawidollah
27-03-10, 07:01
Rules are in .htaccess file. Instruction do NOT say to edit vbseo.php - it says to edit .haccess file and to put additional content before RULES TO vbseo.php. Please go to your .htaccess file and you will find there rules for vbseo.php :)

there rules for vbseo.php?
i think many new users thinks about vbseo.php in their forut root
better you said it rules for vbseo in .htaccess

badawidollah
27-03-10, 10:21
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)/$ vbenterprisetranslator_seo.php?vbet_lang=$1&redirected=/forum/ [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=/forum/$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]

RewriteBase /forum/

RewriteCond %{HTTP_HOST} !^www\.nusantaraku\.org
RewriteRule (.*) http://www.nusantaraku.org/forum/$1 [L,R=301]

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

RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron|vbseo_sitemap)
RewriteRule ^((archive/)?(.*\.php(/.*)?))$ vbseo.php [L,QSA]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !/(admincp|modcp|clientscript|cpstyles|images)/
RewriteRule ^(.+)$ vbseo.php [L,QSA]


i am using vbseo
and i am using vbseo sitemap generator 2.6

vBET
27-03-10, 13:34
i am using vbseo
and i am using vbseo sitemap generator 2.6

Our description clearly says to set vBET rules JUST BEFORE rules to vbseo.php You put it too early. Please move it. Do you need more help in this issue? :)

I wrote additional description about this to put more attention on JUST BEFORE part ;)

precylnet
25-04-10, 20:28
How is the integration of instruction vBSEO Lighttpd +? Yours.

vBET
25-04-10, 20:37
How is the integration of instruction vBSEO Lighttpd +? Yours.
Please send your current rule, Lighttpd, it will send you updated:)

precylnet
25-04-10, 20:48
In the beginning it was a basic rewrites of the lighttpd vBSEO looks something like this:



$HTTP["host"] == "DOMENA" {
server.document-root = "SCIEZKA DO /HTML/"
url.rewrite-once = (
"^/(sitemap.*\.(xml|txt)(\.gz)?)$" => "/vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1",
"^(/(admincp|modcp|clientscript|cpstyles|images|customavatars)/.*)$" => "$1",
"^(/favicon\.ico|/robots\.txt|.*clear\.gif)$" => "$1",
"^/(.+)\?(.*)$" => "/vbseo.php?$2",
"^/(.+)$" => "/vbseo.php"
)
}


I looked this forum and currently ENTIRE rewrites looks like this:


$HTTP["host"] == "SCIEZKA DO STRONY" {
server.document-root = "SCIEZKA DO /HTML/"
url.rewrite-once = (
"^/(sitemap.*\.(xml|txt)(\.gz)?)$" => "/vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1",
"^/(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=",
"^/(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=$2",
"^(/(admincp|modcp|clientscript|cpstyles|images|customavatars)/.*)$" => "$1",
"^(/favicon\.ico|/robots\.txt|.*clear\.gif)$" => "$1",
"^/(.+)\?(.*)$" => "/vbenterprisetranslator_seo.php?$2",
"^/(.+)$" => "/vbenterprisetranslator_seo.php"
)
}


Not working of course-displays a blank page at the entrance to the index only works forum in English the rest like krzaczy:) thanks in advance for your support, I greet.

vBET
25-04-10, 22:09
What is the address to your forum? - I need to know whether the forum uses a subdirectory in the address, and as so, what

precylnet
25-04-10, 22:11
Hi,

Posted via PM

Best regards

vBET
25-04-10, 22:32
I see that the missing &#39;/&#39; at the end of the rules. Use this:


$HTTP["host"] == "PATH TO FORUM" {
server.document-root = "PATH TO /HTML/"
url.rewrite-once = (
"^/(sitemap.*\.(xml|txt)(\.gz)?)$" => "/vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1",
"^/(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=/",
"^/(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=/$2",
"^(/(admincp|modcp|clientscript|cpstyles|images|customavatars)/.*)$" => "$1",
"^(/favicon\.ico|/robots\.txt|.*clear\.gif)$" => "$1",
"^/(.+)\?(.*)$" => "/vbenterprisetranslator_seo.php?$2",
"^/(.+)$" => "/vbenterprisetranslator_seo.php"
)
}

precylnet
25-04-10, 22:38
Unfortunately, with / without - does not work the same way it behaves. Maybe this code must precede vBSEO rule?

vBET
26-04-10, 03:25
Unfortunately, with / without - does not work the same way it behaves. Maybe this code must precede vBSEO rule?
Non-vBSEO rules cannot be before that. They've never needed-vBET redirects underneath to vBSEO. Ask for a little patience-przyglądnę the rules and what happens in the vbenterprisetransaltor_seo file (maybe it's a matter of some zminenych).Edit: Now your Board is disabled, so I can't fully see what is going on. Page, with the message translates correctly as 2nd address sent to me in PM is invalid (rather than the forum. php should be/forum/)-amendment and this is working properly by translations. Are you sure there is still a problem, or may, however, these rules are correct?

precylnet
26-04-10, 20:31
Hi, I still have a problem, information on the LP. Yours.

vBET
26-04-10, 23:17
Hi, I still have a problem, information on the LP. Yours.

Going there.

roymogg
27-04-10, 21:19
I have the free version on my test vb3.8 forum working fine and would like to purchase this for the VB4.02 main forum where VBSEO is installed.

One of the issues I noticed is you need homepage aliaises set to blank whereas I have currently forum/index.php and forum/index.php? as the CMS is in the domain root and the forum is in the www-example-com/forum directory.

It is very easy to screw up VBSEO and have plugins fall over all over the forum so...

Why are the aliaises blank? - you use VBSEO here and have the portal in the root - what are your settings?

cheers

roy

Are the precise integration instructions here so we can review before download?

vBET
27-04-10, 21:52
I have the free version on my test vb3.8 forum working fine and would like to purchase this for the VB4.02 main forum where VBSEO is installed.

One of the issues I noticed is you need homepage aliaises set to blank whereas I have currently forum/index.php and forum/index.php? as the CMS is in the domain root and the forum is in the www-example-com/forum directory.

It is very easy to screw up VBSEO and have plugins fall over all over the forum so...

Why are the aliaises blank? - you use VBSEO here and have the portal in the root - what are your settings?

cheers

roy

Are the precise integration instructions here so we can review before download?

Please note that homepage aliases are NOT have to be blank anymore - it is since several versions ago :)

If you still see such information in any place on out forum - please give us link and we will correct it :)

roymogg
01-05-10, 18:31
The home page alliais to be blank is in the instructions for VBSO integration shown on vbulletin.org.

this was version243 I think - is this instruction no longer valid?

cheers

RoyMogg

text on vb.org

I have SEO translation links on, I use vBSEO and main page is not translating - what is wrong?
First, make sure that your .htaccess rules are OK - especially for forums with subdirectory in URL.
Second, do NOT use Define Homepage Aliases functionality from vbSEO (make sure that it is blank).

vBET
01-05-10, 21:52
The home page alliais to be blank is in the instructions for VBSO integration shown on vbulletin.org.

this was version243 I think - is this instruction no longer valid?

cheers

RoyMogg

text on vb.org

I have SEO translation links on, I use vBSEO and main page is not translating - what is wrong?
First, make sure that your .htaccess rules are OK - especially for forums with subdirectory in URL.
Second, do NOT use Define Homepage Aliases functionality from vbSEO (make sure that it is blank).

Yes - this is not valid anymore. We made changes which allows to have home aliases now. I'm going there right now to remove old data. Thanks for pointing it to us :)

magmf
09-05-10, 13:50
and about vbseo links for cms articles and blog posts ?

is there anything we need change to make this possible ?

vBET
09-05-10, 20:01
and about vbseo links for cms articles and blog posts ?

is there anything we need change to make this possible ?

Those are translated by vBET - please see integration instructions in readme.html in vBET package :)

trevis
13-05-10, 23:05
Hello, I know that you speak to add to the rules of the htacces before the rules of the vbseo.php but to many people this may be confusing, since there are two lines with "vbseo.php".

Here is the .htaccess original vBSEO, you can specify the exact line that we must add the rules to the .htaccess of the vBET?



1 RewriteEngine On
2 RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
3 RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron|vbseo_sitemap)
4 RewriteRule ^((archive/)?(.*\.php(/.*)?))$ vbseo.php [L,QSA]
5 RewriteCond %{REQUEST_FILENAME} !-f
6 RewriteCond %{REQUEST_FILENAME} !-d
7 RewriteCond %{REQUEST_FILENAME} !/(admincp|modcp|clientscript|cpstyles|images)/
8 RewriteRule ^(.+)$ vbseo.php [L,QSA]

trevis
14-05-10, 14:21
Please, can someone post a complete example of a ".htaccess" that works with vBET and vBSEO?

I believe that the amount of posts (and pages) of this thread justifies an example.

[]s,
Rafael.

vBET
15-05-10, 00:58
Hello, I know that you speak to add to the rules of the htacces before the rules of the vbseo.php but to many people this may be confusing, since there are two lines with "vbseo.php".

Here is the .htaccess original vBSEO, you can specify the exact line that we must add the rules to the .htaccess of the vBET?



1 RewriteEngine On
2 RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
3 RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron|vbseo_sitemap)
4 RewriteRule ^((archive/)?(.*\.php(/.*)?))$ vbseo.php [L,QSA]
5 RewriteCond %{REQUEST_FILENAME} !-f
6 RewriteCond %{REQUEST_FILENAME} !-d
7 RewriteCond %{REQUEST_FILENAME} !/(admincp|modcp|clientscript|cpstyles|images)/
8 RewriteRule ^(.+)$ vbseo.php [L,QSA]


It is clearly described to add vBET rules just before ALL rules to vbseo.php So 'just before ALL rules to vbseo.php' means - before first which is to vbseo.php - not earlier not later.

We didn't realize that it can be confusing. How you suggest we should describe it? - We will gladly take any suggestion how to improve his description :)

vBET
15-05-10, 01:00
Please, can someone post a complete example of a ".htaccess" that works with vBET and vBSEO?

I believe that the amount of posts (and pages) of this thread justifies an example.

[]s,
Rafael.

Please give your actual .htaccess content and forum URL - we will send you back rules with appropriate changes :)

trevis
15-05-10, 01:06
The site is www[dot]mandela[dot]org, and my ".htaccess" current is this:


RewriteEngine on

RewriteCond %{HTTP_HOST} ^mandela\.org
RewriteRule ^(.*)$ http://www.mandela.org/$1 [R=permanent,L]

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

#RULES for SEO translation links without any SEO engine (on raw vBulletin links)
#If you are using vB 'Mod Rewrite Friendly URLs' then put those rules JUST BEFORE vB rules
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|sq|ca|et|tl|gl|hi|id|lv|lt|mt|sl|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]

#vBulletin Standard Rules
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d

RewriteRule ^.*$ - [NC,L]

# Forum
RewriteRule ^threads/.* showthread.php [QSA]
RewriteRule ^forums/.* forumdisplay.php [QSA]
RewriteRule ^members/.* member.php [QSA]
RewriteRule ^blogs/.* blog.php [QSA]
ReWriteRule ^entries/.* entry.php [QSA]

RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d

RewriteRule ^.*$ - [NC,L]

# MVC
RewriteRule ^(?:(.*?)(?:/|$))(.*|$)$ $1.php?r=$2 [QSA]


I am disabled with vBSEO. I&#39;ve tried to put its rules before all vbseo.php but I had good results.

trevis
15-05-10, 01:09
It is clearly described to add vBET rules just before ALL rules to vbseo.php So 'just before ALL rules to vbseo.php' means - before first which is to vbseo.php - not earlier not later.

We didn't realize that it can be confusing. How you suggest we should describe it? - We will gladly take any suggestion how to improve his description :)
For example, reading your instructions I would put the details of its htaccess between lines 3 and 4, is that correct? If I already tried and did not work: (

Jesh
21-05-10, 15:21
Here is my .htaccess IN ROOT, with FORUMS in root (e.g. I do not have forums in folder or anything, only rewritten as so) MAKE SURE THE LONG RULE ISN'T BROKEN (E.G. TURN OFF 'WORD WRAP IN NOTEPAD).


RewriteEngine On
Options +FollowSymLinks

# Redirect coinforums.com
RewriteCond %{HTTP_HOST} ^(www\.)?uscoininfo\.com
RewriteRule (.*) http://www.coinforums.com/ [R=301,L]
# End Redirect from CoinForums.com


# Redirect to WWW
RewriteCond %{HTTP_HOST} ^coinforums.com [NC]
RewriteRule ^(.*)$ http://www.coinforums.com/$1 [L,R=301]
# End Redirect to WWW

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

# vBET
# RULES for SEO translation links with vBSEO (have to be included before all rules to vbseo.php)

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)/gallery/(.*)?$ /gallery/$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)/$ vbenterprisetranslator_seo.php?vbet_lang=$1&redirected=/ [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=/$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 End



# vBSEO Beg
#RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron|vbseo_sitemap)
#RewriteRule ^((archive/)?(.*\.php(/.*)?))$ vbseo.php [L,QSA]
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{REQUEST_FILENAME} !/(admincp|modcp|clientscript|cpstyles|images)/
#RewriteRule ^(.+)$ vbseo.php [L,QSA]
# vBSEO End

VGF
21-05-10, 16:22
Here is my .htaccess IN ROOT, with FORUMS in root (e.g. I do not have forums in folder or anything, only rewritten as so) MAKE SURE THE LONG RULE ISN'T BROKEN (E.G. TURN OFF 'WORD WRAP IN NOTEPAD).


It looks like something I could try, but what is this line for ?


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

I don't have a /gallery folder at root.

vBET
22-05-10, 23:23
For example, reading your instructions I would put the details of its htaccess between lines 3 and 4, is that correct? If I already tried and did not work: (

As I remember issue already solved by PM - correct me if I'm wrong :)

vBET
22-05-10, 23:25
It looks like something I could try, but what is this line for ?



I don't have a /gallery folder at root.

Is there still any issue? As I remember we were solving it by PM, but want to be sure that it is OK :)

Taurus
01-07-11, 13:41
I am having a serious issue here. Please help.

I think it might have something to do with my .htaccess integration. Here is mine, is it correct, or did I do something wrong?:


# 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} !^windows8theme\.org$
RewriteRule ^(.*)$ http://windows8theme.org/$1 [L,R=301]

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

RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron|vbseo_sitemap)
RewriteRule ^((archive/)?(.*\.php(/.*)?))$ vbseo.php [L,QSA]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !/(admincp|modcp|clientscript|cpstyles|images)/
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=/forum/index.php [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=/forum/$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]
RewriteRule ^(.+)$ vbseo.php [L,QSA]

# MONTH
<FilesMatch "\.(flv|gif|jpg|jpeg|png|ico|swf)$">
Header set Cache-Control "max-age=2592000"
</FilesMatch>

# WEEK
<FilesMatch "\.(js|css|pdf|txt)$">
Header set Cache-Control "max-age=604800"
</FilesMatch>

# DAY
<FilesMatch "\.(html|htm)$">
Header set Cache-Control "max-age=43200"
</FilesMatch>

vBET
01-07-11, 20:43
It is wrong. Please put vBET rules BEFORE vbseo.php rule, still AFTER sitemap generator rule. So in other words between rules for sitemap generator (at the beginning) and vbseo.php (at the end).


I am having a serious issue here. Please help.

I think it might have something to do with my .htaccess integration. Here is mine, is it correct, or did I do something wrong?:


# 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} !^windows8theme\.org$
RewriteRule ^(.*)$ http://windows8theme.org/$1 [L,R=301]

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

RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron|vbseo_sitemap)
RewriteRule ^((archive/)?(.*\.php(/.*)?))$ vbseo.php [L,QSA]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !/(admincp|modcp|clientscript|cpstyles|images)/
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=/forum/index.php [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=/forum/$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]
RewriteRule ^(.+)$ vbseo.php [L,QSA]

# MONTH
<FilesMatch "\.(flv|gif|jpg|jpeg|png|ico|swf)$">
Header set Cache-Control "max-age=2592000"
</FilesMatch>

# WEEK
<FilesMatch "\.(js|css|pdf|txt)$">
Header set Cache-Control "max-age=604800"
</FilesMatch>

# DAY
<FilesMatch "\.(html|htm)$">
Header set Cache-Control "max-age=43200"
</FilesMatch>

mykkal
26-08-12, 20:40
Hey guys,

i'm having trouble with the translator. I have it installed and I inserted the rewrite rules in my htaccess but I get 404 errors when I try to visit the translated url. The subdirectory my forum is in is 'jobs'. Can you guys help? Here is my htaccess.


# 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 ^[^/]+-f([0-9]+)(p([0-9]+))?.html$ vbseo.php?vbseourl=forumdisplay.php&f=$1&page=$3 [L]
RewriteRule ^[^/]+-t([0-9]+)(p([0-9]+))?.html$ vbseo.php?vbseourl=showthread.php&t=$1&page=$3 [L]
RewriteRule ^[^/]+-f([0-9]+)(p([0-9]+))?.html$ vbseo.php?vbseourl=forumdisplay.php&f=$1&page=$3 [L]
RewriteRule ^[^/]+-t([0-9]+)(p([0-9]+))?.html$ vbseo.php?vbseourl=showthread.php&t=$1&page=$3 [L]

# 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 /

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=/jobs/ [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=/jobs/$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]

RewriteCond %{QUERY_STRING} !vbseourl=
RewriteCond %{REQUEST_URI} !(admincp/|modcp/|chat|cron)
RewriteRule ^(.*\.php(/.*)?)$ vbseo.php?vbseourl=$1 [L,QSA]

RewriteCond %{REQUEST_FILENAME} !\.(jpg|gif)$
RewriteRule ^(archive/.*)$ vbseo.php?vbseourl=$1 [L,QSA]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !^(admincp|modcp|clientscript|cpstyles|images)/
RewriteRule ^(.+)$ vbseo.php?vbseourl=$1 [L,QSA]

php_flag magic_quotes_sybase 0
php_flag suhosin.cookie.encrypt Off
php_value suhosin.request.max_vars 2048
php_value suhosin.post.max_vars 2048
<Files 403.shtml>
order allow,deny
allow from all
</Files>

deny from 41.
deny from 190.58.246.214
deny from 196.29.219.35
deny from 81.18.42.117

mykkal
26-08-12, 22:12
Hey guys,

having trouble getting vbet to work on my site mymodeltalk.com. I added everything to the htcaccess file as you see below but when I click on a translation I get an 404 error. We have our forum in subdirectory jobs. Any ideas of what I should do?


# 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 ^[^/]+-f([0-9]+)(p([0-9]+))?.html$ vbseo.php?vbseourl=forumdisplay.php&f=$1&page=$3 [L]
RewriteRule ^[^/]+-t([0-9]+)(p([0-9]+))?.html$ vbseo.php?vbseourl=showthread.php&t=$1&page=$3 [L]
RewriteRule ^[^/]+-f([0-9]+)(p([0-9]+))?.html$ vbseo.php?vbseourl=forumdisplay.php&f=$1&page=$3 [L]
RewriteRule ^[^/]+-t([0-9]+)(p([0-9]+))?.html$ vbseo.php?vbseourl=showthread.php&t=$1&page=$3 [L]

# 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 /

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=/jobs/ [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=/jobs/$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]

RewriteCond %{QUERY_STRING} !vbseourl=
RewriteCond %{REQUEST_URI} !(admincp/|modcp/|chat|cron)
RewriteRule ^(.*\.php(/.*)?)$ vbseo.php?vbseourl=$1 [L,QSA]

RewriteCond %{REQUEST_FILENAME} !\.(jpg|gif)$
RewriteRule ^(archive/.*)$ vbseo.php?vbseourl=$1 [L,QSA]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !^(admincp|modcp|clientscript|cpstyles|images)/
RewriteRule ^(.+)$ vbseo.php?vbseourl=$1 [L,QSA]

php_flag magic_quotes_sybase 0
php_flag suhosin.cookie.encrypt Off
php_value suhosin.request.max_vars 2048
php_value suhosin.post.max_vars 2048
<Files 403.shtml>
order allow,deny
allow from all
</Files>

deny from 41.
deny from 190.58.246.214
deny from 196.29.219.35
deny from 81.18.42.117

Marcin Kalak
27-08-12, 14:27
Enter it to htaccess:


# 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 /
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=/jobs/ [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=/jobs/$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]

RewriteRule ^[^/]+-f([0-9]+)(p([0-9]+))?.html$ vbseo.php?vbseourl=forumdisplay.php&f=$1&page=$3 [L]
RewriteRule ^[^/]+-t([0-9]+)(p([0-9]+))?.html$ vbseo.php?vbseourl=showthread.php&t=$1&page=$3 [L]
RewriteRule ^[^/]+-f([0-9]+)(p([0-9]+))?.html$ vbseo.php?vbseourl=forumdisplay.php&f=$1&page=$3 [L]
RewriteRule ^[^/]+-t([0-9]+)(p([0-9]+))?.html$ vbseo.php?vbseourl=showthread.php&t=$1&page=$3 [L]

RewriteCond %{QUERY_STRING} !vbseourl=
RewriteCond %{REQUEST_URI} !(admincp/|modcp/|chat|cron)
RewriteRule ^(.*\.php(/.*)?)$ vbseo.php?vbseourl=$1 [L,QSA]

RewriteCond %{REQUEST_FILENAME} !\.(jpg|gif)$
RewriteRule ^(archive/.*)$ vbseo.php?vbseourl=$1 [L,QSA]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !^(admincp|modcp|clientscript|cpstyles|images)/
RewriteRule ^(.+)$ vbseo.php?vbseourl=$1 [L,QSA]

php_flag magic_quotes_sybase 0
php_flag suhosin.cookie.encrypt Off
php_value suhosin.request.max_vars 2048
php_value suhosin.post.max_vars 2048
<Files 403.shtml>
order allow,deny
allow from all
</Files>

deny from 41.
deny from 190.58.246.214
deny from 196.29.219.35
deny from 81.18.42.117

Posts should be good translate and links should work, but the links may not translate. Then you may want to consider updating and making vBSEO full integration of vBET.

mykkal
28-08-12, 20:43
Hi there, I don't understand what you are saying? What do you mean by full VBSEO intergration with VBET?
Why isn't it working now? Is something not configured properly? I followed the installation instructions.



Posts should be good translate and links should work, but the links may not translate. Then you may want to consider updating and making vBSEO full integration of vBET.

Marcin Kalak
29-08-12, 11:08
If this .htaccess does not work I recommend you upgrade to the latest version of vBSEO and execution of the full configuration again, which is in vBET/do-not-upload/readme.html

marcostutu
27-09-14, 08:49
How do I use the vBSEO with Nginx ?

Marcin Kalak
04-10-14, 19:15
vBET works with nginx and vBSEO, examples of rules you can find in the file:

do-not-upload\tools\redirecting-rules\nginx.txt

Fabiano
23-05-15, 23:41
I am not able to perform the procedure of the URL's short, my .htaccess is like this:


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 %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !^(admincp|modcp|clientscript|cpstyles|images)/
RewriteRule $ vbenterprisetranslator_seo.php [L,QSA]

RewriteCond %{HTTP_HOST} !^www\.mysite\.com
RewriteRule (.*) http://www.mysite.com/$1 [L,R=301]

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

RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron|vbseo_sitemap|api\.php)
RewriteRule ^((archive/)?(.*\.php(/.*)?))$ vbseo.php [L,QSA]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !/(admincp|modcp|clientscript|cpstyles|images)/
RewriteRule ^(.+)$ vbseo.php [L,QSA]

If I put up with the LONG RULES I can make it work, but I want that works in the best way possible that is with the two letters www.mysite/XY/forum.php


You can modify it to the correct way please?

Marcin Kalak
25-05-15, 09:08
If you are NOT using links with 2-signs part i.e: yourforum.com/XY/ then try this:


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 /

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

RewriteRule ^/?(..|zh-CN|zh-TW)/$ vbenterprisetranslator_seo.php?vbet_lang=$1&redirected=/ [L,QSA]
RewriteRule ^/?(..|zh-CN|zh-TW)/(.*)?$ 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]

RewriteCond %{HTTP_HOST} !^www\.mysite\.com
RewriteRule (.*) http://www.mysite.com/$1 [L,R=301]

RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron|vbseo_sitemap|api\.php)
RewriteRule ^((archive/)?(.*\.php(/.*)?))$ vbseo.php [L,QSA]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !/(admincp|modcp|clientscript|cpstyles|images)/
RewriteRule ^(.+)$ vbseo.php [L,QSA]

Fabiano
26-05-15, 01:56
Thank you very much Marcin,

Now it worked with this .htaccess

Tip: Include the .htaccess already ready in the "Other" inside of the zip. This would facilitate a lot.

Thank you.

Marcin Kalak
26-05-15, 11:57
I'm glad I could help you. We have put tips and examples in the file do-not-upload\tools\redirecting-rules\.htaccess and do-not-upload\tools\redirecting-rules\short-redirecting-rules\.htaccess.

Fabiano
24-06-15, 00:56
Marcin,

I realized now that some languages are not being redirected. The link is made the redirect, but when you click on the link goes to the Home. What can it be? My htaccess is as in the last post:


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 /

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

RewriteRule ^/?(..|zh-CN|zh-TW)/$ vbenterprisetranslator_seo.php?vbet_lang=$1&redirected=/ [L,QSA]
RewriteRule ^/?(..|zh-CN|zh-TW)/(.*)?$ 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]

RewriteCond %{HTTP_HOST} !^www\.mysite\.com
RewriteRule (.*) http://www.mysite.com/$1 [L,R=301]

RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron|vbseo_sitemap|api\.php)
RewriteRule ^((archive/)?(.*\.php(/.*)?))$ vbseo.php [L,QSA]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !/(admincp|modcp|clientscript|cpstyles|images)/
RewriteRule ^(.+)$ vbseo.php [L,QSA]

Example:

http://www.xxxxxxx.com/iw/coroas-e-mulheres/2323/%D7%99%D7%9C%D7%93%D7%94-%D7%A9%D7%95%D7%91%D7%91%D7%94-%D7%90%D7%91%D7%9C-%D7%90%D7%91%D7%90-%D7%9C%D7%A2%D7%96%D7%90%D7%96%D7%9C.html

Marcin Kalak
24-06-15, 08:20
Please send me a PM access details to Admin CP, vBSEO CP and FTP. I will check what is going on there :)

Marcin Kalak
25-06-15, 08:40
You must set option AdminCP->vBSEO->Control Panel->General Settings->Character Replacement->Replace Non-English Characters in URLs? to Keep Non-English Characters in URLs.

yogasek
08-04-16, 17:51
I have a problem with forum title translate and characters in urls.

1. I see that this forum have this same problem it can to resolve?

Oferta sprzedaży domeny xxxx.pl (xxxx) (http://www.xxxx.pl/en/poczatkujacy/)
must be:
Oferta sprzedaży domeny xxxx.pl (xxxx) (http://www.xxxx.pl/en/begginer/)

2.
When i log in, non-english characters works fine and polish words are replacement example: ą->a.
Unfortunately guests have a deleted polish words so vbet have a bad links.
How to resolve this?

After login:
Oferta sprzedaży domeny xxxx.pl (xxxx) (http://www.xxxx.pl/filtry-czastek-stalych/)

Guests:
http://www.carcode.pl/filtry-cz-stek-sta-ych/

Marcin Kalak
09-04-16, 07:24
1. Translation forum name is not possible.
2. Try to clear the contents of a folder vbet_guestcache/en/.

AfrikaansAlbanianArabicBelarusianBulgarianCatalanChineseCroatianCzechDanishDutchEnglishEstonianFilipinoFinnishFrenchGalicianGermanGreekHaitian CreoleHebrewHindiHungarianIcelandicIndonesianIrishItalianJapaneseKoreanLatvianLithuanianMacedonianMalayMalteseNorwegianPersianPolishPortugueseRomanianRussianSerbianSlovakSlovenianSpanishSwahiliSwedishTaiwaneseThaiTurkishUkrainianVietnameseWelshYiddish
Translated to other languages thanks to vBET Translator 4.9.2