vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Forum Display Enhancements - vB Enterprise Translator (https://vborg.vbsupport.ru/showthread.php?t=220886)

mechanist 02-10-2010 08:35 PM

Sorry, I`m a littlebit confused and I do not know .htaccess commands, so I ask.

I want to use the vbseo_sitemap addon (without VBSEO) which is located HERE.

As you might know, this addon also uses a .htaccess entry.
Now here is my question:

Can I just add the lines from this addon directly under your code in the .htaccess file ?

Lines in vbseo_sitemap .htaccess:
Code:

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

So would this be ok ?

.htaccess
Code:

#rules for SEO translation links without vbSEO

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|sq|ca|et|tl|gl|hi|id|lv|lt|mt|sl|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|sq|ca|et|tl|gl|hi|id|lv|lt|mt|sl|uk|vi|cy|yi)/(.*)?$ $2?language=$1 [L,QSA]

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

Or will this cause problems ?

Please note that I`m NOT USING VBSEO !!!

Thank you in advance.

imported_silkroad 02-11-2010 05:46 AM

If you are not using vBSEO you don't need a vbseo php file (or any reference to vbSEO) in your rewrite rules ;D

In fact, if you are not using vBSEO, you more-than-likely, do not need an rewrite rule for your sitemaps.

mechanist 02-11-2010 12:35 PM

The vbseo_sitmap add on just came with an .htaccess entry.
This addon you can use without the vbseo installed. It`s just generating a sitmap for crawlers.

I do not know if the sitemap generator will work without this entry (last line) in .htaccess
Also I do not know what this command does - I`m not familiar with .htaccess command but I think there must be a reason why the sitemap generator came with this entry.

imported_silkroad 02-11-2010 01:58 PM

Quote:

Originally Posted by mechanist (Post 1979955)
The vbseo_sitmap add on just came with an .htaccess entry.
This addon you can use without the vbseo installed. It`s just generating a sitmap for crawlers.

I do not know if the sitemap generator will work without this entry (last line) in .htaccess
Also I do not know what this command does - I`m not familiar with .htaccess command but I think there must be a reason why the sitemap generator came with this entry.

You need this rewrite rule, or something similar, if you want to use the vbseo site map generator.

Frankly speaking, the vbseo_sitemap generator has nothing do to with this mod. You should be asking these questions to the vbseo team.

mechanist 02-11-2010 02:37 PM

I know, i`m just affraid of an interaction between the translator .htaccess lines and the sitemap .htaccess lines. I guess the autor of this addon will be also interested if there will be a conflict with the translator and another addon.

TurkeySub 02-11-2010 05:53 PM

Hi Guys,

I have run into an issue and not quite sure when it started, but I have it now lol.

Link: www.gamerslifeline.com

If you visit that link you get directed to index.php, whereas it used to link to portal.php by default. The .htaccess is still correct for the "DirectoryIndex".

When I remove:

Code:

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

From my .htaccess, the "DirectoryIndex" works without issue, but as soon as I add them back, it quits working.

I also confirmed it works fine with the default VBSEO rule:
Code:

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

So where am I going wrong?

Full .htaccess
Code:

DirectoryIndex portal.php index.php

RewriteEngine On

RewriteCond %{HTTP_HOST} !^www\.gamerslifeline\.com
RewriteRule (.*) http://www.gamerslifeline.com/$1 [R=301,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=/ [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]

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

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

Thanks!

NLP-er 02-11-2010 05:59 PM

Quote:

Originally Posted by mechanist (Post 1979451)
Sorry, I`m a littlebit confused and I do not know .htaccess commands, so I ask.

I want to use the vbseo_sitemap addon (without VBSEO) which is located HERE.

As you might know, this addon also uses a .htaccess entry.
Now here is my question:

Can I just add the lines from this addon directly under your code in the .htaccess file ?

Lines in vbseo_sitemap .htaccess:
Code:

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

So would this be ok ?

.htaccess
Code:

#rules for SEO translation links without vbSEO

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|sq|ca|et|tl|gl|hi|id|lv|lt|mt|sl|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|sq|ca|et|tl|gl|hi|id|lv|lt|mt|sl|uk|vi|cy|yi)/(.*)?$ $2?language=$1 [L,QSA]

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

Or will this cause problems ?

Please note that I`m NOT USING VBSEO !!!

Thank you in advance.

Put sitemap rule BEFORE vBET rules.

NLP-er 02-11-2010 06:07 PM

Quote:

Originally Posted by TurkeySub (Post 1980147)
Hi Guys,

I have run into an issue and not quite sure when it started, but I have it now lol.

Link: www.gamerslifeline.com

If you visit that link you get directed to index.php, whereas it used to link to portal.php by default. The .htaccess is still correct for the "DirectoryIndex".

When I remove:

Code:

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

From my .htaccess, the "DirectoryIndex" works without issue, but as soon as I add them back, it quits working.

I also confirmed it works fine with the default VBSEO rule:
Code:

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

So where am I going wrong?

Full .htaccess
Code:

DirectoryIndex portal.php index.php

RewriteEngine On

RewriteCond %{HTTP_HOST} !^www\.gamerslifeline\.com
RewriteRule (.*) http://www.gamerslifeline.com/$1 [R=301,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=/ [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]

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

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

Thanks!

1. put sitemap rule before vBET rules
2. Try this one - change last vBEt rule to be similar like vbseo rule. So it will look like this:
Code:

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

3. Also - didn't you miss something from vbseo rules? As I remember vbseo needs more than 1 rule in htaccess file...

TurkeySub 02-11-2010 06:46 PM

Quote:

Originally Posted by NLP-er (Post 1980158)
1. put sitemap rule before vBET rules
2. Try this one - change last vBEt rule to be similar like vbseo rule. So it will look like this:
Code:

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

3. Also - didn't you miss something from vbseo rules? As I remember vbseo needs more than 1 rule in htaccess file...

The full .htaccess from VBSEO is:
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\.yourdomain\.com
#RewriteRule (.*) http://www.yourdomain.com/forums/$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]

With that, I do not believe I am missing anything.

Would you mind posting a complete .htaccess with all changes as you are suggesting?

mechanist 02-12-2010 03:55 AM

Working fine - thanks for your support !


All times are GMT. The time now is 09:25 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02438 seconds
  • Memory Usage 1,785KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (13)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete