Svarīgs: Šī lapa izmanto cookies (cookies). Izmantojot šo mājas lapu, neizslēdzot sīkdatnes pārlūku, nozīmē, ka jūs piekrītat, izmantojot to.
Pirkt Tagad! Features Lejupielādes

Nopelni kopā ar mums!

Ja jūs vēlaties sākt pelnīt naudu ar vBET pievienoties, lai Filiāļu programmu.
Rezultāti 1 līdz 5 gada 5

Thread: Htaccess sub domēnu vBulletin

  1. #1
    Dalībvalstis
    Pievienošanās datums
    Jūnijs 2010
    Atbildes
    90

    Default Htaccess sub domēnu vBulletin

    Hello,
    man bija daži jauki pārrakstīt noteikums, lai darīt to, ko es gribu:

    1.) Novirzīt <without> "www.", "Wow".
    2) Novirzīt <with> "www.", "Wow".

    Sakarā ar vBet zūd rewrite noteikumi (i didn't taupīja:-()

    Lūk, ko faktiski izmanto:
    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]
    Problēma ir tā, ka "http://glider-forum.de/en/" doesn ' t saņemt novirzīts uz pareizo versiju ar "wow.glider-forum.de/en/"

  2. #2
    Pensionāri;)
    Pievienošanās datums
    Aug 2011
    Atbildes
    441

    Default

    Lūdzu, mēģiniet tu izmantot šo .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
    Dalībvalstis
    Pievienošanās datums
    Jūnijs 2010
    Atbildes
    90

    Default

    Atvainojiet, kāda starpība?

    Nedarbojas, nevar piekļūt visas lapas, kas ir /en/ vai /fr/. [..]


    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]
    Šķiet, darbojas tikai naudas sodu. Thanks anyway.
    Pēdējo reizi wowglider.de; 18-04-12 pie 12:21.

  4. #4
    Pensionāri;)
    Pievienošanās datums
    Aug 2011
    Atbildes
    441

    Default

    Tātad tikai protams ir jautājums, kas joprojām pastāv? Pretējā gadījumā tiks iezīmēts šis pavediens, atrisināt

  5. #5
    Michał Podbielski (vBET Staff) vBET's Avatar
    Pievienošanās datums
    Oktobris 2009
    Atbildes
    3,037

    Default

    Nav atbildes - pieņemot, ka tas tiek risināts.

Tags par šo Thread

Posting atļaujas

  • Jūs nedrīkst Publicēt jaunu pavedieni
  • Jūs nedrīkst post atbildes
  • Jūs nedrīkst pasta pielikumi
  • Jūs nedrīkst rediģēt savas ziņas
  •