• Super User

    Grazie per i complimenti 🙂

    Utilizzando quel plugin puoi riscrivere l'url in quel modo


  • User Attivo

    @cionfs said:

    puoi riscrivere l'url in quel modo

    come è possibile? cosa devo modificare di preciso?:?


  • Super User

    Il file htaccess 🙂 Modificandolo opportunamente.

    Inoltre dovresti modificare il RewriteBase che dovrebbe essere "RewriteBase /forum" se hai il forum in una sottocartella 🙂


  • User Attivo

    @cionfs said:

    Il file htaccess 🙂 Modificandolo opportunamente.
    Ciao, io ora come ora ho il file htaccess in questo modo:

    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-([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>
    
    # //seo_mod_start
    # Uncomment the following and add your forum path if rewrites arent working properly
    #RewriteBase /mybb/
    RewriteRule ^index.html$ index.php [L,NE]
    RewriteRule ^(.*)-t-([0-9]+).html(.*)$ showthread.php?tid=$2$3 [QSA,L]
    RewriteRule ^(.*)-t-([0-9]+)-([0-9]+).html$ showthread.php?tid=$2&page=$3 [QSA,L]
    RewriteRule ^(.*)-f-([0-9]+).html(.*)$ forumdisplay.php?fid=$2$3 [QSA,L]
    RewriteRule ^(.*)-u-([0-9]+).html$ member.php?action=profile&uid=$2 [QSA,L]
    RewriteRule ^members/(.*)-([0-9]+).html$ member.php?action=profile&uid=$2 [QSA,L]
    RewriteRule ^(.*)/(.*)-f-([0-9]+).html(.*)$ forumdisplay.php?fid=$2$3 [QSA,L]
    RewriteRule ^(.*)-f-([0-9]+)-([0-9]+).html(.*)$ forumdisplay.php?fid=$2&page=$3 [QSA,L]
    RewriteRule ^(.*)-f-([0-9]+)-([a-z]+)(-|-[a-z]+)-([0-9]+)-([0-9]+).html(.*)$ forumdisplay.php?fid=$2&sortby=$3&order=$4&datecut=$5&page=$6$7 
    RewriteRule ^(.*)-a-([0-9]+).html$ announcements.php?aid=$2 
    # //seo_mod_end
    
    

    lo devo modificare?

    @cionfs said:

    Inoltre dovresti modificare il RewriteBase che dovrebbe essere "RewriteBase /forum" se hai il forum in una sottocartella 🙂
    Dove trovo il file RewriteBase? :mmm: Comunque il forum ce l'ho nella ROOT

    Grazie


  • Super User

    Allora fai il backup dell'htaccess che hai e mettilo da parte.

    Sostituiscilo con questo

    
    RewriteEngine On
      #RewriteBase /mybb/
      RewriteRule ^index.html$ index.php [L,NE]
      RewriteRule ^(.*)-t-([0-9]+).html(.*)$ showthread.php?tid=$2$3 [QSA,L]
      RewriteRule ^(.*)-t-([0-9]+)-([0-9]+).html$ showthread.php?tid=$2&page=$3 [QSA,L]
      RewriteRule ^(.*)-f-([0-9]+).html(.*)$ forumdisplay.php?fid=$2$3 [QSA,L]
      RewriteRule ^(.*)-u-([0-9]+).html$ member.php?action=profile&uid=$2 [QSA,L]
      RewriteRule ^members/(.*)-([0-9]+).html$ member.php?action=profile&uid=$2 [QSA,L]
      RewriteRule ^(.*)/(.*)-f-([0-9]+).html(.*)$ forumdisplay.php?fid=$2$3 [QSA,L]
      RewriteRule ^(.*)-f-([0-9]+)-([0-9]+).html(.*)$ forumdisplay.php?fid=$2&page=$3 [QSA,L]
      RewriteRule ^(.*)-f-([0-9]+)-([a-z]+)(-|-[a-z]+)-([0-9]+)-([0-9]+).html(.*)$ forumdisplay.php?fid=$2&sortby=$3&order=$4&datecut =$5&page=$6$7 
      RewriteRule ^(.*)-a-([0-9]+).html$ announcements.php?aid=$2 
    
    

  • User Attivo

    @cionfs said:

    Allora fai il backup dell'htaccess che hai e mettilo da parte.

    Sostituiscilo con questo

    Ciao, sostituendo con il file htaccess che mi hai dato non mi funziona e mi dà questo errore:

    Code 500 > Violazione policy o htaccess errato! - Policy violation or wrong htaccess! [CENTER]
    Nel 99% dei casi controlla il contenuto del tuo file .htaccess, spesso puo' contenere direttive o regole sbagliate o non supportate

    [LEFT]Non è che forse dovrebbe esserci questo:

    # //seo_mod_start
    
    # Uncomment the following and add your forum path if rewrites arent working properly
    
    #RewriteBase /mybb/
    
    RewriteRule ^index.html$ index.php [L,NE]
    
    RewriteRule ^(.*)-t-([0-9]+).html(.*)$ showthread.php?tid=$2$3 [QSA,L]
    
    RewriteRule ^(.*)-t-([0-9]+)-([0-9]+).html$ showthread.php?tid=$2&page=$3 [QSA,L]
    
    RewriteRule ^(.*)-f-([0-9]+).html(.*)$ forumdisplay.php?fid=$2$3 [QSA,L]
    
    RewriteRule ^(.*)-u-([0-9]+).html$ member.php?action=profile&uid=$2 [QSA,L]
    
    RewriteRule ^members/(.*)-([0-9]+).html$ member.php?action=profile&uid=$2 [QSA,L]
    
    RewriteRule ^(.*)/(.*)-f-([0-9]+).html(.*)$ forumdisplay.php?fid=$2$3 [QSA,L]
    
    RewriteRule ^(.*)-f-([0-9]+)-([0-9]+).html(.*)$ forumdisplay.php?fid=$2&page=$3 [QSA,L]
    
    RewriteRule ^(.*)-f-([0-9]+)-([a-z]+)(-|-[a-z]+)-([0-9]+)-([0-9]+).html(.*)$ forumdisplay.php?fid=$2&sortby=$3&order=$4&datecut=$5&page=$6$7 
    
    RewriteRule ^(.*)-a-([0-9]+).html$ announcements.php?aid=$2 
    
    # //seo_mod_end
    

    Ciao e Grazie 🙂
    [/LEFT]
    [/CENTER]


  • Super User

    Potrebbe, l'unica cosa che puoi fare è provare 😉


  • User Attivo

    @cionfs said:

    Potrebbe, l'unica cosa che puoi fare è provare 😉
    OK, ma perchè con quello che ho ora non va bene?


  • Super User

    Se ti riferisci al primo è perchè il rewrite viene effettuato due volte 🙂

    Mi spiego meglio. E' inserito il rewrite per i thread sia all'inizio che alla fine dell'htaccess in maniera diversa


  • User Attivo

    @cionfs said:

    Se ti riferisci al primo è perchè il rewrite viene effettuato due volte 🙂

    Mi spiego meglio. E' inserito il rewrite per i thread sia all'inizio che alla fine dell'htaccess in maniera diversa
    Il secondo che ho posta va bene quindi dici che è ok se utilizzo quello?


  • Super User

    Se ti riferisci a questo

    [php]

    //seo_mod_start

    Uncomment the following and add your forum path if rewrites arent working properly

    #RewriteBase /mybb/

    RewriteRule ^index.html$ index.php [L,NE]

    RewriteRule ^(.)-t-([0-9]+).html(.)$ showthread.php?tid=$2$3 [QSA,L]

    RewriteRule ^(.*)-t-([0-9]+)-([0-9]+).html$ showthread.php?tid=$2&page=$3 [QSA,L]

    RewriteRule ^(.)-f-([0-9]+).html(.)$ forumdisplay.php?fid=$2$3 [QSA,L]

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

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

    RewriteRule ^(.)/(.)-f-([0-9]+).html(.*)$ forumdisplay.php?fid=$2$3 [QSA,L]

    RewriteRule ^(.)-f-([0-9]+)-([0-9]+).html(.)$ forumdisplay.php?fid=$2&page=$3 [QSA,L]

    RewriteRule ^(.)-f-([0-9]+)-([a-z]+)(-|-[a-z]+)-([0-9]+)-([0-9]+).html(.)$ forumdisplay.php?fid=$2&sortby=$3&order=$4&datecut=$5&page=$6$7

    RewriteRule ^(.*)-a-([0-9]+).html$ announcements.php?aid=$2

    //seo_mod_end[/php]Credo vada bene 🙂


  • User Attivo

    @cionfs said:

    Credo vada bene 🙂
    Ok grazie 1000 per il supporto ;):)


  • Super User

    Figurati 🙂

    Fammi sapere se funge tutto 🙂


  • User Attivo

    @cionfs said:

    Fammi sapere se funge tutto 🙂
    rieccomi come da aspettative :D:D

    Non riesco ad accedere nelle varie sezioni :mmm:


  • Super User

    In che senso? Puoi vedere i profili utenti, i topic ma non le sezioni?

    Su che livello è installato il forum? Secondo, terzo, sottocartella? 🙂


  • User Attivo

    @cionfs said:

    In che senso? Puoi vedere i profili utenti, i topic ma non le sezioni?

    Su che livello è installato il forum? Secondo, terzo, sottocartella? 🙂
    Visualizzo solo la home del forum.

    il forum non ha nessuna sottocartella è nella home


  • Super User

    Nel file htaccess non c'è questa riga, vero?

    [php]
    Options -MultiViews +FollowSymlinks -Indexes
    [/php]


  • User Attivo

    @cionfs said:

    Nel file htaccess non c'è questa riga, vero?

    [php]
    Options -MultiViews +FollowSymlinks -Indexes
    [/php]
    in quale htaccess?


  • Super User

    Nell'htaccess del forum 🙂


  • User Attivo

    @cionfs said:

    Nell'htaccess del forum 🙂
    si ma dici in quello che ho ora o quello che ho postato nie precedenti post?