• User

    Non mi funziona mod_rewrite

    Ciao a tutti,

    ho installato correttamente phpbb3 nella cartella forum del mio sito, successivamente ho installato advanced mod_rewrite ( dopo aver effettuato le dovute modifiche per il template ) correttamente, almeno credo visto che non mi ha dato nessun errore.
    L'unico problema è che non mi riscrive le URL.
    Posto di seguito l'.htaccess nella speranza che qualcuno riesca a capire se c'è un errore lì.

    # Lines That should already be in your .htacess
    <Files "config.php"****>
    Order Allow,Deny
    Deny from All
    </Files>
    <Files "common.php"****>
    Order Allow,Deny
    Deny from All
    </Files>

    **# You may need to un-comment the following line

    Options +FollowSymlinks

    REMEBER YOU ONLY NEED TO STARD MOD REWRITE ONCE**

    RewriteEngine On
    # REWRITE BASE
    RewriteBase /
    # HERE IS A GOOD PLACE TO ADD THE WWW PREFIXE REDIRECTION

    **#####################################################

    PHPBB SEO REWRITE RULES - ADVANCED

    #####################################################

    AUTHOR : dcz phpbb-seo.com

    STARTED : 01/2006

    #################################

    FORUMS PAGES

    ###############**
    **# FORUM INDEX REWRITERULE WOULD STAND HERE IF USED. "forum" REQUIRES TO BE SET AS FORUM INDEX

    RewriteRule ^forum/forum.html$ /forum/index.php [QSA,L,NC]**

    # FORUM
    RewriteRule ^forum/[a-z0-9_-]-f([0-9]+)(-([0-9]+))?.html*$ /forum/viewforum.php?f=$1&start=$3 [QSA,L,NC]
    # TOPIC WITH VIRTUAL FOLDER
    RewriteRule ^forum/[a-z0-9_-]-f([0-9]+)/[a-z0-9_-]-t([0-9]+)(-([0-9]+))?.html$ /forum/viewtopic.php?f=$1&t=$2&start=$4 [QSA,L,NC]
    # GLOBAL ANNOUNCES WITH VIRTUAL FOLDER
    RewriteRule ^forum/announces**/[a-z0-9_-]-t*([0-9]+)(-([0-9]+))?.html$ /forum/viewtopic.php?t=$1&start=$3 [QSA,L,NC]
    # TOPIC WITHOUT FORUM ID & DELIM
    RewriteRule ^forum/([a-z0-9_-])/?[a-z0-9_-]-t([0-9]+)(-([0-9]+))?.html$ /forum/viewtopic.php?forum_uri=$1&t=$2&start=$4 [QSA,L,NC]
    # PROFILES THROUGH USERNAME
    RewriteRule ^forum/member/([^/]+)/?$ /forum/memberlist.php?mode=viewprofile&un=$1 [QSA,L,NC]
    # USER MESSAGES THROUGH USERNAME
    RewriteRule ^forum/member/([^/]+)/(topics|posts)/?(page([0-9]+).html)?$ /forum/search.php?author=$1&sr=$2&start=$4 [QSA,L,NC]
    # GROUPS ADVANCED
    RewriteRule ^forum/[a-z0-9_-]-g([0-9]+)(-([0-9]+))?.html*$ /forum/memberlist.php?mode=group&g=$1&start=$3 [QSA,L,NC]
    # POST
    RewriteRule ^forum/post([0-9]+).html$ /forum/viewtopic.php?p=$1 [QSA,L,NC]
    # ACTIVE TOPICS
    RewriteRule ^forum/active-topics(-([0-9]+))?.html$ /forum/search.php?search_id=active_topics&start=$2&sr=topics [QSA,L,NC]
    # UNANSWERED TOPICS
    RewriteRule ^forum/unanswered(-([0-9]+))?.html$ /forum/search.php?search_id=unanswered&start=$2&sr=topics [QSA,L,NC]
    # NEW POSTS
    RewriteRule ^forum/newposts(-([0-9]+))?.html$ /forum/search.php?search_id=newposts&start=$2&sr=topics [QSA,L,NC]
    # THE TEAM
    RewriteRule ^forum/the-team**.html**$ /forum/memberlist.php?mode=leaders [QSA,L,NC]
    # HERE IS A GOOD PLACE TO ADD OTHER PHPBB RELATED REWRITERULES

    # FORUM WITHOUT ID & DELIM
    # THESE FOUR LINES MUST BE LOCATED AT THE END OF YOUR HTACCESS TO WORK PROPERLY
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^forum/([a-z0-9_-]+)(-([0-9]+)).html$ /forum/viewforum.php?forum_uri=$1&start=$3 [QSA,L,NC]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^forum/([a-z0-9_-]+).html$ /forum/viewforum.php?forum_uri=$1 [QSA,L,NC]
    # END PHPBB PAGES
    #####################################################


  • User Attivo

    ciccio, se il problema fosse nel file .htaccess avresti un errore 404 (pagina non trovata)

    hai attivato la mod dal pca?


  • User

    Beh... "ciccio" te lo tieni per te visto che non siamo ne parenti ne amici, grazie. Cortesia e rispetto innanzitutto please.
    Se per attivare la mod intendi impostare su "yes" attiva mod_rewrite, è ovvio che l'ho fatto ( sono un profano di phpbb3 ma fino ad un certo punto ci arrivo )
    Ho postato l'.htaccess di proposito proprio perchè non sò che pesci pigliare, sono qui apposta per imparare, altrimenti Giorgio avrebbe impostato un superquizzone da "chi vuol esser miliardario" e chi rispondeva esattamente a tutte le domande aveva diritto a scivere sul forum, no?
    Grazie lo stesso ciao:wink3:


  • User Attivo

    mi scusi tanto se non ha gradito il mio tono scherzoso.

    se la cavi da solo, arrivederla 😛


  • User

    Con "grazie lo stesso ciao" avevo già fatto intendere che avrei proseguito da solo, per me il discorso è chiuso e per cortesia smettila con queste uscite a vuoto.

    P.S. tono scherzoso?? Raccontalo a qualcun altro