• Super User

    Non Funziona il Rewrite

    Ciao a Tutti
    allora, ho installato la phpbb3 e ho convertito la phpbb2 e il tutto funziona.

    Successivamente ho installato Advanced - 0.4.4 Phpbb Seo e dopo varie peripezie funziona anche questo.

    Ora, abilito l'url rewrite e la home della board si vede e presenta anche gli url riscritti ma cliccandoci sopra mi da pagina NOT FOUND.

    Il forum in questione è in test qui: http: // www . vacanzecalabria.biz/ forum/ index.php

    Questo è l' .htaccess:[PHP]

    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 www.phpbb-seo.com

    STARTED : 01/2006

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

    FORUMS PAGES

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

    FORUM INDEX

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

    FORUM

    RewriteRule ^[a-z0-9_-]*-f([0-9]+)(-([0-9]+))?.html$ /forum/viewforum.php?f=$1&start=$3 [QSA,L,NC]

    TOPIC WITH VIRTUAL FOLDER

    RewriteRule ^[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 ^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 ^([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 SIMPLE

    RewriteRule ^member([0-9]+).html$ /forum/memberlist.php?mode=viewprofile&u=$1 [QSA,L,NC]

    USER MESSAGES SIMPLE

    RewriteRule ^member([0-9]+)-(topics|posts)(-([0-9]+))?.html$ /forum/search.php?author_id=$1&sr=$2&start=$4 [QSA,L,NC]

    GROUPS SIMPLE

    RewriteRule ^group([0-9]+)(-([0-9]+))?.html$ /forum/memberlist.php?mode=group&g=$1&start=$3 [QSA,L,NC]

    POST

    RewriteRule ^post([0-9]+).html$ /forum/viewtopic.php?p=$1 [QSA,L,NC]

    ACTIVE TOPICS

    RewriteRule ^active-topics(-([0-9]+))?.html$ /forum/search.php?search_id=active_topics&start=$2&sr=topics [QSA,L,NC]

    UNANSWERED TOPICS

    RewriteRule ^unanswered(-([0-9]+))?.html$ /forum/search.php?search_id=unanswered&start=$2&sr=topics [QSA,L,NC]

    NEW POSTS

    RewriteRule ^newposts(-([0-9]+))?.html$ /forum/search.php?search_id=newposts&start=$2&sr=topics [QSA,L,NC]

    THE TEAM

    RewriteRule ^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 ^([a-z0-9_-]+)(-([0-9]+)).html$ /forum/viewforum.php?forum_uri=$1&start=$3 [QSA,L,NC]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^([a-z0-9_-]+).html$ /forum/viewforum.php?forum_uri=$1 [QSA,L,NC]

    END PHPBB PAGES

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

    [/PHP]

    Chi mi aiuta?:crying:


  • User Attivo

    setta su no virtual root, invia gli url alla cache, clicca su more options sul menu di htaccess, clicca su si alla voce htaccess location, rigenera il file e uppalo.


  • Super User

    Di che colore lo vuoi il marmo per la statua?

    Grazie 1000


  • Super User

    Ciao Scusa
    ho installato correttamente il Seo Rewrite, poi mi sono dedicato ad installare le mod Optimal Title, poi quello per i meta ma i tag presenti nelle istruzioni non sono presenti nei file, immaggino in quanto sono stati sovrascritti dal rewrite.

    Quindi sono incompatibili?


  • User Attivo

    non lo so, guarda la sorgente html delle varie pagine e guarda se è ottimizzato.


  • Super User

    Come pensavo.

    Ti pongo altre due domande approfittando della tua bontà:

    Ho installato optimal title ma i titoli delle pagine non mi escono come vorrei cioè come ho qui http : // www . vacanzecalabria.biz/public/forum/ferragosto-in-calabria-vt111.html
    Dove il post ha come titolo il suo stesso titolo e basta.

    Vorrei mettere i due banner Adsense come il vecchio sito ma non ci capisco più nulla nella phpbb3

    Mi dai una mano?