Visualizzazione risultati 1 fino 4 di 4

Discussione: Problema: mod_rewrite e phpBB2

  1. #1
    Guest

    Predefinito "Abilita URL brevi" Problema: mod_rewrite, .htaccess e phpBB2

    Cosa non vā in questo codice del file .htaccess??

    Codice:
    # Mod Rewrite Rules for Static URLs can be found in this file.
    #
    # You have to set the correct Path to your Forum here otherwise this will not work !
    # Just change the "YOUR_PATH" in the below code to the path your Forum uses.
    # For example if your Forum can be reached at http://www.myforum.com/phpBB2/ you have
    # to set the path to this
    #
    # RewriteRule (.*) /phpBB2/index.php [L]
    #                   ^^^^^^
    #
    # If your Forum can be reached at http://www.myforum.com you can delete the path part
    # 
    # RewriteRule (.*) /index.php [L]
    #
    # After making all needed changes in this file rename it to .htaccess and delete the original
    # .htaccess file
    
    DirectoryIndex index.html index.htm portal.php index.php
    
    RewriteEngine On
    
    RewriteCond %{REQUEST_FILENAME} /forums.html
    RewriteRule (.*) /phpBB2/index.php [L]
    
    RewriteCond %{REQUEST_FILENAME} /forumc([0-9]*).*
    RewriteRule (.*) /phpBB2/index.php?c=%1 [L]
    
    RewriteCond %{REQUEST_FILENAME} /viewforum([0-9]*)-([0-9]*)-([0-9]*).html
    RewriteRule (.*) /phpBB2/viewforum.php?f=%1&topicdays=%2&start=%3 [L]
    
    RewriteCond %{REQUEST_FILENAME} /forum([0-9]*).html
    RewriteRule (.*) /phpBB2/viewforum.php?f=%1 [L]
    
    RewriteCond %{REQUEST_FILENAME} /ptopic([0-9]*).html
    RewriteRule (.*) /phpBB2/viewtopic.php?t=%1&view=previous [L]
    
    RewriteCond %{REQUEST_FILENAME} /ntopic([0-9]*).html
    RewriteRule (.*) /phpBB2/viewtopic.php?t=%1&view=next [L]
    
    RewriteCond %{REQUEST_FILENAME} /ftopic([0-9]*)-([0-9]*)-([a-zA-Z]*)-([0-9]*).html
    RewriteRule (.*) /phpBB2/viewtopic.php?t=%1&postdays=%2&postorder=%3&start=%4 [L]
    
    RewriteCond %{REQUEST_FILENAME} /ftopic([0-9]*)-([0-9]*).html
    RewriteRule (.*) /phpBB2/viewtopic.php?t=%1&start=%2 [L]
    
    RewriteCond %{REQUEST_FILENAME} /ftopic([0-9]*).html
    RewriteRule (.*) /phpBB2/viewtopic.php?t=%1 [L]
    
    RewriteCond %{REQUEST_FILENAME} /ftopic([0-9]*).html
    RewriteRule (.*) /phpBB2/viewtopic.php?t=%1&start=%2&postdays=%3&postorder=%4&highlight=%5 [L]
    # prevent access from santy webworm a-e
    RewriteCond %{QUERY_STRING} ^(.*)highlight=\%2527 [OR]
    RewriteCond %{QUERY_STRING} ^(.*)rush=\%65\%63\%68 [OR]
    RewriteCond %{QUERY_STRING} ^(.*)rush=echo [OR]
    RewriteCond %{QUERY_STRING} ^(.*)echr(.*) [OR]
    RewriteCond %{QUERY_STRING} ^(.*)esystem(.*) [OR]
    RewriteCond %{QUERY_STRING} ^(.*)union(.*) [OR]
    RewriteCond %{QUERY_STRING} ^(.*)UNION(.*) [OR]
    RewriteCond %{QUERY_STRING} ^(.*)alert\(document(.*) [OR]
    RewriteCond %{QUERY_STRING} ^(.*)SQL_INJECTION(.*) [OR]
    RewriteCond %{QUERY_STRING} ^(.*)wget\%20
    RewriteRule ^.*$ http://127.0.0.1/ [R,L]
    
    # prevent pre php 4.3.10 bug
    RewriteCond %{HTTP_COOKIE}% s:(.*):\%22test1\%22\%3b
    RewriteRule ^.*$ http://127.0.0.1/ [R,L]
    
    # prevent perl user agent (most often used by santy)
    RewriteCond %{HTTP_USER_AGENT} ^lwp.* [NC]
    RewriteRule ^.*$ http://127.0.0.1/ [R,L]
    Ultima modifica di aliensat : 16-10-2005 alle ore 17.26.56

  2. #2
    Guest

    Predefinito

    perchč mi da l'errore 500??

  3. #3
    Guest

    Predefinito

    Errore 500 :(

    Si č verificato un internal server error.

    Se il problema persiste, probabilmente il programma che hai tentato di eseguire non funziona correttamente, o perchč qualcuno ci sta lavorando, o percč si tratta di un malfunzionamento dovuto a qualche bug di programmazione, in questo caso informaci.

    Torna indietro
    Nessuno sa di cosa si tratti? nessuno ha il forum phpBB2?
    Volevo abilitare gli Url Brevi, ma non ci riesco :(

  4. #4
    Guest

    Predefinito

    ho risolto grazie al sito di phpBB2ita.
    basta eliminare dal file .htaccess la riga
    DirectoryIndex index.html index.htm portal.php index.php

Regole di scrittura

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