Visualizzazione risultati 1 fino 15 di 15

Discussione: Mybb 1.4.4 errore 500 con SEO

  1. #1
    Guest

    Angry Mybb 1.4.4 errore 500 con SEO

    Salve
    Ho installato di recente un forum mybb 1.4.4, finito di creare il forum volevo farlo diventare SEO visto che la versione 1.4.4 non necessita di plugin volevo chiedervi come mai mi esce questo errore 500 ho già rinominato il file hatchess in .hatchess ma niente da fare, questo problema mi assilla ormai da mesi anche con joomla e sh404SEF per adesso vorei risolvere quello per il forum.

    Il forum si trova nella directory http://miosito.altervista.org/forum/

    Aiuto grazie

  2. #2
    L'avatar di miki92
    miki92 non è connesso AlterGuru 2500
    Data registrazione
    21-04-2007
    Residenza
    Procida (NA)
    Messaggi
    4,226

    Predefinito

    Come prima cosa il file si chiama .htaccess e no ".hatchess" però sperando che ti sei solo errato a scrivere qui nel forum il nome di questo file ti chiedo di postarne il contenuto per un analisi così da cercare di capire se l'errore viene generato da un errata sintassi...
    Apprezzi l'aiuto? Offrimi un caffè!

  3. #3
    Guest

    Predefinito

    Citazione Originalmente inviato da miki92 Visualizza messaggio
    Come prima cosa il file si chiama .htaccess e no ".hatchess" però sperando che ti sei solo errato a scrivere qui nel forum il nome di questo file ti chiedo di postarne il contenuto per un analisi così da cercare di capire se l'errore viene generato da un errata sintassi...
    Si mi sono sbagliato a srivere sul forum,
    ecco il file

    Options -MultiViews +FollowSymlinks -Indexes

    #
    # If mod_security is enabled, attempt to disable it.
    # - Note, this will work on the majority of hosts but on
    # MediaTemple, it is known to cause random Internal Server
    # errors. For MediaTemple, please remove the block below
    #
    <IfModule mod_security.c>
    # Turn off mod_security filtering.
    SecFilterEngine Off

    # The below probably isn't needed, but better safe than sorry.
    SecFilterScanPOST Off
    </IfModule>

    #
    # MyBB "search engine friendly" URL rewrites
    # - Note, for these to work with MyBB please make sure you have
    # the setting enabled in the Admin CP and you have this file
    # named .htaccess
    #
    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteRule ^forum-([0-9]+).html forumdisplay.php?fid=$1 [L,QSA]
    RewriteRule ^forum-([0-9]+)-page-([0-9]+).html forumdisplay.php?fid=$1&page=$2 [L,QSA]

    RewriteRule ^thread-([0-9]+).html showthread.php?tid=$1 [L,QSA]
    RewriteRule ^thread-([0-9]+)-page-([0-9]+).html showthread.php?tid=$1&page=$2 [L,QSA]
    RewriteRule ^thread-([0-9]+)-lastpost.html showthread.php?tid=$1&action=lastpost [L,QSA]
    RewriteRule ^thread-([0-9]+)-nextnewest.html showthread.php?tid=$1&action=nextnewest [L,QSA]
    RewriteRule ^thread-([0-9]+)-nextoldest.html showthread.php?tid=$1&action=nextoldest [L,QSA]
    RewriteRule ^thread-([0-9]+)-newpost.html showthread.php?tid=$1&action=newpost [L,QSA]
    RewriteRule ^thread-([0-9]+)-post-([0-9]+).html showthread.php?tid=$1&pid=$2 [L,QSA]

    RewriteRule ^post-([0-9]+).html showthread.php?pid=$1 [L,QSA]

    RewriteRule ^announcement-([0-9]+).html announcements.php?aid=$1 [L,QSA]

    RewriteRule ^user-([0-9]+).html member.php?action=profile&uid=$1 [L,QSA]

    RewriteRule ^calendar-([0-9]+).html calendar.php?calendar=$1 [L,QSA]
    RewriteRule ^calendar-([0-9]+)-year-([0-9]+).html calendar.php?action=yearview&calendar=$1&year=$2 [L,QSA]
    RewriteRule ^calendar-([0-9]+)-year-([0-9]+)-month-([0-9]+).html calendar.php?calendar=$1&year=$2&month=$3 [L,QSA]
    RewriteRule ^calendar-([0-9]+)-year-([0-9]+)-month-([0-9]+)-day-([0-9]+).html calendar.php?action=dayview&calendar=$1&year=$2&mo nth=$3&day=$4 [L,QSA]
    RewriteRule ^calendar-([0-9]+)-week-(n?[0-9]+).html calendar.php?action=weekview&calendar=$1&week=$2 [L,QSA]

    RewriteRule ^event-([0-9]+).html calendar.php?action=event&eid=$1 [L,QSA]

    <IfModule mod_env.c>
    SetEnv SEO_SUPPORT 1
    </IfModule>
    </IfModule>

    #
    # If Apache is compiled with built in mod_deflade/GZIP support
    # then GZIP Javascript, CSS, HTML and XML so they're sent to
    # the client faster.
    #
    <IfModule mod_deflate.c>
    AddOutputFilterByType DEFLATE application/x-javascript text/css text/html text/xml
    </IfModule>
    Ultima modifica di coastercommunity : 10-03-2009 alle ore 02.37.22

  4. #4
    L'avatar di makpaolo
    makpaolo non è connesso Utente storico
    Data registrazione
    08-05-2003
    Residenza
    Brescia ( prov.)
    Messaggi
    9,399

    Predefinito

    hai attivato gli htaccess da pannello di Altervista?
    se si, vai nel pannello di amministrazione del forum -> configurazione -> opzioni server e otimizzazione
    la prima riga "Abilita il motore per gli URL amichevoli?" impostala su "abilitata" e non "rilevazione automatica"
    Se smetti di imparare e evolverti sei morto dentro

  5. #5
    Guest

    Predefinito

    Citazione Originalmente inviato da makpaolo Visualizza messaggio
    hai attivato gli htaccess da pannello di Altervista?
    se si, vai nel pannello di amministrazione del forum -> configurazione -> opzioni server e otimizzazione
    la prima riga "Abilita il motore per gli URL amichevoli?" impostala su "abilitata" e non "rilevazione automatica"
    Ciao
    Adesso esce pagina non trovata quando clicco sul post o discussione e poi url che vedo sulla barra mi sembra poco SEF h**p://miosito.altervista.org/forum/foum.html usando invece il plugin seo esce bene url ma anche errore 500
    Ultima modifica di coastercommunity : 10-03-2009 alle ore 14.30.31

  6. #6
    L'avatar di makpaolo
    makpaolo non è connesso Utente storico
    Data registrazione
    08-05-2003
    Residenza
    Brescia ( prov.)
    Messaggi
    9,399

    Predefinito

    ma gli htaccess per il tuo account (su altervista) li hai attivati da pannello?
    il file htaccess è nella cartella del forum o è nella root del sito? deve restare nella cartella del forum.
    Non sò se per il plugin seo ci vogliano delle modifiche (path del forum) ma mi pare di no ...
    Se smetti di imparare e evolverti sei morto dentro

  7. #7
    Guest

    Predefinito

    Citazione Originalmente inviato da makpaolo Visualizza messaggio
    ma gli htaccess per il tuo account (su altervista) li hai attivati da pannello?
    il file htaccess è nella cartella del forum o è nella root del sito? deve restare nella cartella del forum.
    Non sò se per il plugin seo ci vogliano delle modifiche (path del forum) ma mi pare di no ...

    li hai attivati da pannello?
    Ho rinominato il file htaccess.txt a .htaccess da ftp (filezilla)

    Aggiornamento: Provato anche da pannello, niente

    deve restare nella cartella del forum.
    Si il file è dentro la root del forum

    Con il plugin bisogna aggiungere delle righe al file htaccess (già provato ma ninte da fare)
    Ultima modifica di coastercommunity : 10-03-2009 alle ore 18.56.41

  8. #8
    L'avatar di miki92
    miki92 non è connesso AlterGuru 2500
    Data registrazione
    21-04-2007
    Residenza
    Procida (NA)
    Messaggi
    4,226

    Predefinito

    Prova a modificare il tuo file in questo modo:

    Codice PHP:
    #Options -MultiViews +FollowSymlinks -Indexes

    #
    # If mod_security is enabled, attempt to disable it.
    # - Note, this will work on the majority of hosts but on
    # MediaTemple, it is known to cause random Internal Server
    # errors. For MediaTemple, please remove the block below
    #
    <IfModule mod_security.c>
    # Turn off mod_security filtering.
    SecFilterEngine Off

    # The below probably isn't needed, but better safe than sorry.
    SecFilterScanPOST Off
    </IfModule>

    #
    # MyBB "search engine friendly" URL rewrites
    # - Note, for these to work with MyBB please make sure you have
    # the setting enabled in the Admin CP and you have this file
    # named .htaccess
    #
    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteBase
    /
    RewriteRule ^forum-([0-9]+).html forumdisplay.php?fid=$1 [L,QSA]
    RewriteRule ^forum-([0-9]+)-page-([0-9]+).html forumdisplay.php?fid=$1&page=$2 [L,QSA]

    RewriteRule ^thread-([0-9]+).html showthread.php?tid=$1 [L,QSA]
    RewriteRule ^thread-([0-9]+)-page-([0-9]+).html showthread.php?tid=$1&page=$2 [L,QSA]
    RewriteRule ^thread-([0-9]+)-lastpost.html showthread.php?tid=$1&action=lastpost [L,QSA]
    RewriteRule ^thread-([0-9]+)-nextnewest.html showthread.php?tid=$1&action=nextnewest [L,QSA]
    RewriteRule ^thread-([0-9]+)-nextoldest.html showthread.php?tid=$1&action=nextoldest [L,QSA]
    RewriteRule ^thread-([0-9]+)-newpost.html showthread.php?tid=$1&action=newpost [L,QSA]
    RewriteRule ^thread-([0-9]+)-post-([0-9]+).html showthread.php?tid=$1&pid=$2 [L,QSA]

    RewriteRule ^post-([0-9]+).html showthread.php?pid=$1 [L,QSA]

    RewriteRule ^announcement-([0-9]+).html announcements.php?aid=$1 [L,QSA]

    RewriteRule ^user-([0-9]+).html member.php?action=profile&uid=$1 [L,QSA]

    RewriteRule ^calendar-([0-9]+).html calendar.php?calendar=$1 [L,QSA]
    RewriteRule ^calendar-([0-9]+)-year-([0-9]+).html calendar.php?action=yearview&calendar=$1&year=$2 [L,QSA]
    RewriteRule ^calendar-([0-9]+)-year-([0-9]+)-month-([0-9]+).html calendar.php?calendar=$1&year=$2&month=$3 [L,QSA]
    RewriteRule ^calendar-([0-9]+)-year-([0-9]+)-month-([0-9]+)-day-([0-9]+).html calendar.php?action=dayview&calendar=$1&year=$2&mo nth=$3&day=$4 [L,QSA]
    RewriteRule ^calendar-([0-9]+)-week-(n?[0-9]+).html calendar.php?action=weekview&calendar=$1&week=$2 [L,QSA]

    RewriteRule ^event-([0-9]+).html calendar.php?action=event&eid=$1 [L,QSA]

    <
    IfModule mod_env.c>
    SetEnv SEO_SUPPORT 1
    </IfModule>
    </
    IfModule>

    #
    # If Apache is compiled with built in mod_deflade/GZIP support
    # then GZIP Javascript, CSS, HTML and XML so they're sent to
    # the client faster.
    #
    <IfModule mod_deflate.c>
    AddOutputFilterByType DEFLATE application/x-javascript text/css text/html text/xml
    </IfModule>
    @makpaolo Ma .htaccess ormai non è attivo di default senza costi per tutti gli account per via del PHP5 e della Toolbar?
    Ultima modifica di miki92 : 10-03-2009 alle ore 18.57.36
    Apprezzi l'aiuto? Offrimi un caffè!

  9. #9
    Guest

    Predefinito

    Ancora errore 500

    Lasciamo perdere

  10. #10
    L'avatar di miki92
    miki92 non è connesso AlterGuru 2500
    Data registrazione
    21-04-2007
    Residenza
    Procida (NA)
    Messaggi
    4,226

    Predefinito

    Citazione Originalmente inviato da coastercommunity Visualizza messaggio
    Lasciamo perdere
    Lasciamo perdere? Non lasciamo perdere un bel nulla...ormai è una sfida tra me e questo codice...naturalmente ho vinto io, questo è il codice funzionante (testato nella root del mio spazio, server 12) :

    Codice PHP:
    #Options -MultiViews +FollowSymlinks -Indexes

    #
    # If mod_security is enabled, attempt to disable it.
    # - Note, this will work on the majority of hosts but on
    # MediaTemple, it is known to cause random Internal Server
    # errors. For MediaTemple, please remove the block below
    #
    <IfModule mod_security.c>
    # Turn off mod_security filtering.
    SecFilterEngine Off

    # The below probably isn't needed, but better safe than sorry.
    SecFilterScanPOST Off
    </IfModule>

    #
    # MyBB "search engine friendly" URL rewrites
    # - Note, for these to work with MyBB please make sure you have
    # the setting enabled in the Admin CP and you have this file
    # named .htaccess
    #
    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteBase
    /
    RewriteRule ^forum-([0-9]+).html forumdisplay.php?fid=$1 [L,QSA]
    RewriteRule ^forum-([0-9]+)-page-([0-9]+).html forumdisplay.php?fid=$1&page=$2 [L,QSA]

    RewriteRule ^thread-([0-9]+).html showthread.php?tid=$1 [L,QSA]
    RewriteRule ^thread-([0-9]+)-page-([0-9]+).html showthread.php?tid=$1&page=$2 [L,QSA]
    RewriteRule ^thread-([0-9]+)-lastpost.html showthread.php?tid=$1&action=lastpost [L,QSA]
    RewriteRule ^thread-([0-9]+)-nextnewest.html showthread.php?tid=$1&action=nextnewest [L,QSA]
    RewriteRule ^thread-([0-9]+)-nextoldest.html showthread.php?tid=$1&action=nextoldest [L,QSA]
    RewriteRule ^thread-([0-9]+)-newpost.html showthread.php?tid=$1&action=newpost [L,QSA]
    RewriteRule ^thread-([0-9]+)-post-([0-9]+).html showthread.php?tid=$1&pid=$2 [L,QSA]

    RewriteRule ^post-([0-9]+).html showthread.php?pid=$1 [L,QSA]

    RewriteRule ^announcement-([0-9]+).html announcements.php?aid=$1 [L,QSA]

    RewriteRule ^user-([0-9]+).html member.php?action=profile&uid=$1 [L,QSA]

    RewriteRule ^calendar-([0-9]+).html calendar.php?calendar=$1 [L,QSA]
    RewriteRule ^calendar-([0-9]+)-year-([0-9]+).html calendar.php?action=yearview&calendar=$1&year=$2 [L,QSA]
    RewriteRule ^calendar-([0-9]+)-year-([0-9]+)-month-([0-9]+).html calendar.php?calendar=$1&year=$2&month=$3 [L,QSA]
    RewriteRule ^calendar-([0-9]+)-year-([0-9]+)-month-([0-9]+)-day-([0-9]+).html calendar.php?action=dayview&calendar=$1&year=$2&month=$3&day=$4 [L,QSA]
    RewriteRule ^calendar-([0-9]+)-week-(n?[0-9]+).html calendar.php?action=weekview&calendar=$1&week=$2 [L,QSA]

    RewriteRule ^event-([0-9]+).html calendar.php?action=event&eid=$1 [L,QSA]

    <
    IfModule mod_env.c>
    SetEnv SEO_SUPPORT 1
    </IfModule>
    </
    IfModule>

    #
    # If Apache is compiled with built in mod_deflade/GZIP support
    # then GZIP Javascript, CSS, HTML and XML so they're sent to
    # the client faster.
    #
    <IfModule mod_deflate.c>
    AddOutputFilterByType DEFLATE application/x-javascript text/css text/html text/xml
    </IfModule>
    L'errore dove si trovava? In questa riga:
    Codice PHP:
    RewriteRule ^calendar-([0-9]+)-year-([0-9]+)-month-([0-9]+)-day-([0-9]+).html calendar.php?action=dayview&calendar=$1&year=$2&month=$3&day=$4 [L,QSA]
    Ecco come era prima:
    Codice PHP:
    RewriteRule ^calendar-([0-9]+)-year-([0-9]+)-month-([0-9]+)-day-([0-9]+).html calendar.php?action=dayview&calendar=$1&year=$2&mo nth=$3&day=$4 [L,QSA]
    L'errore non si nota...praticamente al posto di month c'era scritto mo nth (nella seconda parte di codice)...

    Ci ho messo un po' di tempo a capire dove si trovasse l'errore...ma come potrai ben testare...l'ho trovato e risolto
    Ultima modifica di miki92 : 10-03-2009 alle ore 21.09.18
    Apprezzi l'aiuto? Offrimi un caffè!

  11. #11
    Guest

    Predefinito

    Come detto lasciamo perdere!! nonostante i tui sforzi graditissimi adesso esce 404, o c'è un problema sul mio server perchè non è possibile che non riesco ne con joomla ne con il forum.

    Grazie ancora, tengo tutto comè

  12. #12
    L'avatar di miki92
    miki92 non è connesso AlterGuru 2500
    Data registrazione
    21-04-2007
    Residenza
    Procida (NA)
    Messaggi
    4,226

    Predefinito

    Probabilmente l'errore 404 capita perchè tu inserisci questo file .htaccess nella root del tuo spazio mentre il forum si trova in una determinata cartella! Ecco come risolvere:

    1) Entra (tramite pannello o FTP) all'interno della cartella chiamata [B]forum[/B
    2) Crea un file .htaccess
    3) Inseriscigli il seguente codice:
    Codice PHP:
    #Options -MultiViews +FollowSymlinks -Indexes

    #
    # If mod_security is enabled, attempt to disable it.
    # - Note, this will work on the majority of hosts but on
    # MediaTemple, it is known to cause random Internal Server
    # errors. For MediaTemple, please remove the block below
    #
    <IfModule mod_security.c>
    # Turn off mod_security filtering.
    SecFilterEngine Off

    # The below probably isn't needed, but better safe than sorry.
    SecFilterScanPOST Off
    </IfModule>

    #
    # MyBB "search engine friendly" URL rewrites
    # - Note, for these to work with MyBB please make sure you have
    # the setting enabled in the Admin CP and you have this file
    # named .htaccess
    #
    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteBase
    /forum/
    RewriteRule ^forum-([0-9]+).html forumdisplay.php?fid=$1 [L,QSA]
    RewriteRule ^forum-([0-9]+)-page-([0-9]+).html forumdisplay.php?fid=$1&page=$2 [L,QSA]

    RewriteRule ^thread-([0-9]+).html showthread.php?tid=$1 [L,QSA]
    RewriteRule ^thread-([0-9]+)-page-([0-9]+).html showthread.php?tid=$1&page=$2 [L,QSA]
    RewriteRule ^thread-([0-9]+)-lastpost.html showthread.php?tid=$1&action=lastpost [L,QSA]
    RewriteRule ^thread-([0-9]+)-nextnewest.html showthread.php?tid=$1&action=nextnewest [L,QSA]
    RewriteRule ^thread-([0-9]+)-nextoldest.html showthread.php?tid=$1&action=nextoldest [L,QSA]
    RewriteRule ^thread-([0-9]+)-newpost.html showthread.php?tid=$1&action=newpost [L,QSA]
    RewriteRule ^thread-([0-9]+)-post-([0-9]+).html showthread.php?tid=$1&pid=$2 [L,QSA]

    RewriteRule ^post-([0-9]+).html showthread.php?pid=$1 [L,QSA]

    RewriteRule ^announcement-([0-9]+).html announcements.php?aid=$1 [L,QSA]

    RewriteRule ^user-([0-9]+).html member.php?action=profile&uid=$1 [L,QSA]

    RewriteRule ^calendar-([0-9]+).html calendar.php?calendar=$1 [L,QSA]
    RewriteRule ^calendar-([0-9]+)-year-([0-9]+).html calendar.php?action=yearview&calendar=$1&year=$2 [L,QSA]
    RewriteRule ^calendar-([0-9]+)-year-([0-9]+)-month-([0-9]+).html calendar.php?calendar=$1&year=$2&month=$3 [L,QSA]
    RewriteRule ^calendar-([0-9]+)-year-([0-9]+)-month-([0-9]+)-day-([0-9]+).html calendar.php?action=dayview&calendar=$1&year=$2&month=$3&day=$4 [L,QSA]
    RewriteRule ^calendar-([0-9]+)-week-(n?[0-9]+).html calendar.php?action=weekview&calendar=$1&week=$2 [L,QSA]

    RewriteRule ^event-([0-9]+).html calendar.php?action=event&eid=$1 [L,QSA]

    <
    IfModule mod_env.c>
    SetEnv SEO_SUPPORT 1
    </IfModule>
    </
    IfModule>

    #
    # If Apache is compiled with built in mod_deflade/GZIP support
    # then GZIP Javascript, CSS, HTML and XML so they're sent to
    # the client faster.
    #
    <IfModule mod_deflate.c>
    AddOutputFilterByType DEFLATE application/x-javascript text/css text/html text/xml
    </IfModule>
    Apprezzi l'aiuto? Offrimi un caffè!

  13. #13
    Guest

    Predefinito

    é già nella root del forum

  14. #14
    L'avatar di miki92
    miki92 non è connesso AlterGuru 2500
    Data registrazione
    21-04-2007
    Residenza
    Procida (NA)
    Messaggi
    4,226

    Predefinito

    Hai modificato:
    Codice PHP:
    RewriteBase /
    In:
    Codice PHP:
    RewriteBase /forum/
    Apprezzi l'aiuto? Offrimi un caffè!

  15. #15
    Guest

    Predefinito

    RISOLTO!

    Adesso funziona con .htaccess di miki92

    Grazie a tutti per l'aiuto

Regole di scrittura

  • Non puoi creare nuove discussioni
  • Non puoi rispondere ai messaggi
  • Non puoi inserire allegati.
  • Non puoi modificare i tuoi messaggi
  •