Pomembno: Ta stran uporablja piškotke (cookies). Z uporabo te spletne strani brez izklopu piškotke v brskalniku, pomeni, da se strinjate za njegovo uporabo.
Kupite! Lastnosti Downloads

Zaslužite z nami!

Če bi želeli začeti zaslužite denar z vBET stika za Affiliate Program.
Rezultati 1 do 5 od 5

Thread: .htaccess za sub domeno vbulletin

  1. #1

    Default .htaccess za sub domeno vbulletin

    Hello,
    sem imel nekaj lepo Reportaža pravilo storiti kaj hočem:

    1.) Preusmeriti <without> "www." za "wow".
    2.) Preusmeriti <with> "www." za "wow".

    Zaradi vBet Reportaža pravila so izgubljene (niste rešil sem jim:-()

    Tukaj je, kaj dejansko uporabite:
    Code:
    RewriteEngine On
    
    RewriteCond %{HTTP_HOST} ^www\.glider-forum\.de$ [NC]
    RewriteRule ^(.*)$ http://wow.glider-forum.de/$1 [R=301,L]
    
    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]
    
    RewriteCond %{HTTP_HOST} ^www\.glider-forum\.de$ [NC]
    RewriteRule ^(.*)$ http://wow.glider-forum.de/$1 [R=301,L]
    
    RewriteCond %{HTTP_HOST} ^glider-forum\.de$ [NC]
    RewriteRule ^(.*)$ http://wow.glider-forum.de/$1 [R=301,L]
    
    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]
    Problem je, da "http://glider-forum.de/en/" doesnt zaslužiti preusmerjeni na desni različica z "wow.glider-forum.de/en/"

  2. #2
    Upokojeni;)
    Join Date
    Avgust 2011
    Prispevkov
    441

    Default

    Prosimo, poskusite tu uporabo to .htacess
    Code:
    RewriteEngine On
    
    RewriteCond %{HTTP_HOST} ^www\.glider-forum\.de$ [NC]
    RewriteRule ^(.*)$ http://wow.glider-forum.de/$1 [R=301,L]
    
    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\.glider-forum\.de$ [NC]
    RewriteRule ^(.*)$ http://wow.glider-forum.de/$1 [R=301,L]
    
    RewriteCond %{HTTP_HOST} ^glider-forum\.de$ [NC]
    RewriteRule ^(.*)$ http://wow.glider-forum.de/$1 [R=301,L]
    
    RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
    
    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/|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]

  3. #3

    Default

    Žal, kaj je razlika?

    Ne deluje, ne morete dostopati do nobenih /en/ ali /fr/ strani. ##


    BTW
    Code:
    RewriteEngine On
    
    RewriteCond %{HTTP_HOST} ^www\.glider-forum\.de$ [NC]
    RewriteRule ^(.*)$ http://wow.glider-forum.de/$1 [R=301,L]
    
    RewriteCond %{HTTP_HOST} ^glider-forum\.de$ [NC]
    RewriteRule ^(.*)$ http://wow.glider-forum.de/$1 [R=301,L]
    
    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]
    
    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]
    Zdi se, da delo v redu. Hvala vseeno.
    Nazadnje urejal wowglider.de; 18-04-12 pri 12:21.

  4. #4
    Upokojeni;)
    Join Date
    Avgust 2011
    Prispevkov
    441

    Default

    Torej šele v obstati varen je na vprašanje, ki še vedno obstajajo? Če ne, da sem bo označite to nit, rešiti

  5. #5
    Michał Podbielski (vBET osebja) vBET's Avatar
    Join Date
    Oktober 2009
    Prispevkov
    3,037

    Default

    Brez odgovora - to ob predpostavki, da je rešen.

Oznake za to Thread

Pravila objavljanja

  • You ne sme objavljati novih tem
  • You ne sme post Odgovori
  • You ne sme dodati priponk prispevkom
  • You ne sme urejati svojih prispevkov
  •