• Rejestracja
vBHELP.pl - polskie wsparcie vBulletin
  1. #1
    Awatar day-dreamer
    day-dreamer jest nieaktywny Użytkownik vBHELP.pl
    Dołączył
    Feb 2008
    Posty
    723
    Przydatne posty
    3

    Domyślnie bład .htaccess

    Co zrobić z tym problemem



    problem powoduje ta regułka

    RewriteRule ^((archive/)?(.*\.php(/.*)?))$ vbseo.php [L,QSA]

    a tak wygląda mój cały plik .htaccess przed tą regułka na serwerze mam dane znaczek # i wtedy jest wyłączone ale tak nie może być

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

    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]



  2. #2
    Awatar day-dreamer
    day-dreamer jest nieaktywny Użytkownik vBHELP.pl
    Dołączył
    Feb 2008
    Posty
    723
    Przydatne posty
    3

    Domyślnie

    dostałem odpowiedz concern .htaccess - vBulletin SEO Forums

    ale nic to nie dało napisałem do hostingu hosting odpisał na to


    Skrypt należy przystosować do pracy z apache 2.2.x oraz z php pracującym jako fastcgi.
    i jak to zrobić ?


  3. #3
    Seba jest nieaktywny Advanced Member
    Dołączył
    Feb 2009
    Posty
    1 059
    Przydatne posty
    44

    Domyślnie

    A co ma php do mod_rewrite?

    Poza tym to jest regulka do translatora - więc powinna wyglądać tak
    Kod:
    RewriteCond %{REQUEST_URI} !(admincp/|modcp/|vbseo_sitemap/|cron)
    RewriteRule ^((archive/)?(.*\.php(/.*)?))$ vbenterprisetranslator_seo.php [L,QSA]
    Ostatnio edytowane przez Seba ; 12.02.2010 o 18:34
    Profesjonalne modyfikacje vBulletin oraz style - gg 1981480 badz PW


  4. #4
    Awatar day-dreamer
    day-dreamer jest nieaktywny Użytkownik vBHELP.pl
    Dołączył
    Feb 2008
    Posty
    723
    Przydatne posty
    3

    Domyślnie

    to w tedy mam taki błąd

    ze brak takiego pliku a .htaccess który podałem jest oryginalny z paczki vbseo




    i czy w panelu jak biorę Pokaż PHP Info to powinno być tam mod_rewrite ? bo nie ma
    Ostatnio edytowane przez day-dreamer ; 12.02.2010 o 19:27


  5. #5
    Seba jest nieaktywny Advanced Member
    Dołączył
    Feb 2009
    Posty
    1 059
    Przydatne posty
    44

    Domyślnie

    Dla vBSEO
    Kod:
    # vB seo
    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]
    Profesjonalne modyfikacje vBulletin oraz style - gg 1981480 badz PW


  6. #6
    Awatar day-dreamer
    day-dreamer jest nieaktywny Użytkownik vBHELP.pl
    Dołączył
    Feb 2008
    Posty
    723
    Przydatne posty
    3

    Domyślnie

    Jak wrzucę samo to co podałeś wyżej to jak wchodzę do działu to mam



    pobrałem nową paczkę vbseo ze strony i tak wygląda cały plik .htaccess z paczki vbseo


    Kod:
    # 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]
    jak go wrzucę to mam

    http://www.bankfotek.pl/image/532880.jpeg

    i odpisz proszę czy w panelu jak biorę Pokaż PHP Info to powinno być tam mod_rewrite ? bo nie ma
    Ostatnio edytowane przez day-dreamer ; 13.02.2010 o 12:04


  7. #7
    Awatar g0rn
    g0rn jest nieaktywny Stały bywalec
    Dołączył
    May 2009
    Posty
    188
    Przydatne posty
    5

    Domyślnie

    Zastąp regułki swojego .htacess na podane poniżej przeze mnie i zobacz co będzie.


    Kod php:
    # 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 ^/?(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)/$ vbenterprisetranslator_seo.php?vbet_lang=$1&redirected=/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|sq|ca|et|tl|gl|hi|id|lv|lt|mt|sl|uk|vi|cy|yi)/(.*)?$ vbenterprisetranslator_seo.php?vbet_lang=$1&redirected=/$[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=$[L]

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

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

    Podałem również regułki dla vbenterprisetranslator ,gdyż nie wiem czy masz go na stronie, bo patrząc na post powyżej wychodzi że tak.Jeżeli nie to usuń regułki dla niego .
    Ostatnio edytowane przez g0rn ; 13.02.2010 o 21:57


  8. #8
    Awatar day-dreamer
    day-dreamer jest nieaktywny Użytkownik vBHELP.pl
    Dołączył
    Feb 2008
    Posty
    723
    Przydatne posty
    3

    Domyślnie

    nie mam vbenterprisetranslator, i dalej to samo

    http://www.bankfotek.pl/image/532880.jpeg
    Ostatnio edytowane przez day-dreamer ; 13.02.2010 o 21:58


  9. #9
    Awatar g0rn
    g0rn jest nieaktywny Stały bywalec
    Dołączył
    May 2009
    Posty
    188
    Przydatne posty
    5

    Domyślnie

    Gdybyś miał disabled mod_rewrite wówczas apache nie obsługiwał by .htacess Wydaje mi się że błąd powoduje hotlink
    Zamień
    Kod php:
    RewriteCond %{REQUEST_FILENAME} !^(admincp|modcp|clientscript|cpstyles|images)/ 
    na
    Kod php:
    RewriteCond %{REQUEST_FILENAME} !^(admincp|modcp|clientscript|cpstyles)/ 
    i zobacz jak będzie .


  10. #10
    Awatar day-dreamer
    day-dreamer jest nieaktywny Użytkownik vBHELP.pl
    Dołączył
    Feb 2008
    Posty
    723
    Przydatne posty
    3

    Domyślnie

    nic nie dało

    problem powoduje ta regułka

    Kod:
    RewriteRule ^((archive/)?(.*\.php(/.*)?))$ vbseo.php [L,QSA]


Podobne wątki

  1. vBseo + subdomena = błąd - htaccess
    By Davi in forum vBSEO
    Odpowiedzi: 4
    Ostatni post / autor: 06.11.2010, 13:01
  2. .htaccess
    By fb24 in forum Pytania i problemy
    Odpowiedzi: 2
    Ostatni post / autor: 08.03.2010, 14:38
  3. .htaccess
    By Krosi in forum vBSEO
    Odpowiedzi: 8
    Ostatni post / autor: 18.11.2009, 21:49
  4. .htaccess
    By makaveli23 in forum Pytania i problemy
    Odpowiedzi: 1
    Ostatni post / autor: 16.12.2008, 18:14
  5. vbSEO i htaccess
    By vPoker.pl in forum vBSEO
    Odpowiedzi: 8
    Ostatni post / autor: 11.07.2008, 15:01
Chmurka.pl

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67