Visualizzazione risultati 1 fino 9 di 9

Discussione: Come attivare la mod_rewrite su altervista

  1. #1
    Guest

    Question Come attivare la mod_rewrite su altervista

    Sto cercando di installare Stikked(stikked è simile a pastebin) sul mio sito web.
    A quanto ho letto su internet è neccessaria questa mod_rewrite attiva per far funzionare il .htaccess per appunto far funzionare stikked.
    Vi allego il link ufficiale di stikked : https://github.com/claudehohl/Stikked/ .
    Spero che mi possiate aiutare .

  2. #2
    L'avatar di Gianluca
    Gianluca non è connesso Amministratore
    Data registrazione
    15-02-2001
    Messaggi
    18,035

    Predefinito

    mod_rewrite è disponibile e attivo per tutti
    Gianluca

  3. #3
    Guest

    Predefinito

    Grazie gianluca! non sapevo che la mod_rewrite fosse gia attiva.

  4. #4
    Guest

    Predefinito

    Citazione Originalmente inviato da luckcolors Visualizza messaggio
    Grazie gianluca! non sapevo che la mod_rewrite fosse gia attiva.
    Come mai non riesco a d attivare il mio sito: http://sexgroup.altervista.org/ossn/installation

    Non mi sembra che il mod_rewrite sia attivo?

    Dove posso intervenire?

    Questo è il mio htaccess nella cartella: sexgroup.altervista.org/ossn

    # OpenSource-SocialNetwork
    #
    # @package (Informatikon.com).ossn
    # @author OSSN Core Team <info@opensource-socialnetwork.org>
    # @copyright 2014 iNFORMATIKON TECHNOLOGIES
    # @license General Public Licence http://opensource-socialnetwork.org/licence
    # @link http://www.opensource-socialnetwork.org

    Options -Indexes
    Options +FollowSymLinks
    DirectoryIndex index.php

    <Files "error_log">
    order allow,deny
    deny from all
    </Files>

    <IfModule mod_rewrite.c>
    #SetEnv HTTP_MOD_REWRITE 1

    RewriteEngine on

    RewriteRule ^rewrite.php$ installation/tests/apache_rewrite.php [L]

    RewriteRule ^action\/([A-Za-z0-9\_\-\/]+)$ system/handlers/actions.php?action=$1&%{QUERY_STRING} [L]

    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^([A-Za-z0-9\_\-]+)$ index.php?h=$1 [QSA,L]

    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^([A-Za-z0-9\_\-]+)\/(.*)$ index.php?h=$1&p=$2 [QSA,L]

    </IfModule>

    <IfModule mod_expires.c>
    ExpiresActive On
    ExpiresDefault "access plus 1 year"
    </IfModule>

    <FilesMatch "\.(jpg|jpeg|gif|png|mp3|flv|mov|avi|3pg|html|htm| swf|js|css|ico)$">
    FileETag MTime Size
    </FilesMatch>

    <IfModule mod_php5.c>
    php_value memory_limit 128M
    php_value register_globals 0
    php_value post_max_size 8388608
    php_value upload_max_filesize 5242880
    php_value default_charset "UTF-8"
    </IfModule>

  5. #5
    Guest

    Predefinito

    Non voglio andari fuori tema, mi sembra che non si sia mai trovata la soluzione vedi altri post sullo stesso argomento:

    http://forum.it.altervista.org/php-m...d_rewrite.html
    http://forum.it.altervista.org/wordp...d_rewrite.html

    Probabilmente sono io imbranato, attendo una gentile risposta.

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

    Predefinito

    Prova con questo codice:

    Codice PHP:
    # OpenSource-SocialNetwork
    #
    # @package (Informatikon.com).ossn
    # @author OSSN Core Team <info@opensource-socialnetwork.org>
    # @copyright 2014 iNFORMATIKON TECHNOLOGIES
    # @license General Public Licence http://opensource-socialnetwork.org/licence
    # @link http://www.opensource-socialnetwork.org

    #Options -Indexes
    #Options +FollowSymLinks
    DirectoryIndex index.php

    <Files "error_log">
    order allow,deny
    deny from all
    </Files>

    <
    IfModule mod_rewrite.c>
    #SetEnv HTTP_MOD_REWRITE 1

    RewriteEngine on
    RewriteBase
    /ossn/

    RewriteRule ^rewrite.php$ installation/tests/apache_rewrite.php [L]

    RewriteRule ^action\/([A-Za-z0-9\_\-\/]+)$ system/handlers/actions.php?action=$1&%{QUERY_STRING} [L]

    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond
    %{REQUEST_FILENAME} !-f
    RewriteRule
    ^([A-Za-z0-9\_\-]+)$ index.php?h=$1 [QSA,L]

    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond
    %{REQUEST_FILENAME} !-f
    RewriteRule
    ^([A-Za-z0-9\_\-]+)\/(.*)$ index.php?h=$1&p=$2 [QSA,L]

    </
    IfModule>

    <
    IfModule mod_expires.c>
    ExpiresActive On
    ExpiresDefault
    "access plus 1 year"
    </IfModule>

    <
    FilesMatch "\.(jpg|jpeg|gif|png|mp3|flv|mov|avi|3pg|html|htm| swf|js|css|ico)$">
    FileETag MTime Size
    </FilesMatch>

    <
    IfModule mod_php5.c>
    php_value memory_limit 128M
    php_value register_globals 0
    php_value post_max_size 8388608
    php_value upload_max_filesize 5242880
    php_value default_charset
    "UTF-8"
    </IfModule>
    Apprezzi l'aiuto? Offrimi un caffè!

  7. #7
    Guest

    Predefinito

    Ancora nulla, non funziona..

  8. #8
    itgermania non è connesso Neofita
    Data registrazione
    16-09-2010
    Messaggi
    1

    Predefinito

    ciao a tutti qualcuno puo' aiutarmi a capire dove sbaglio nella compilazione del mio file .hatacess visto che non mi funziona il sito ?

    Options -Multiviews
    RewriteEngine on
    RewriteCond %{REQUEST_FILENAME} -f
    RewriteRule \.(jpg|png|css|js)$ - [L]
    RewriteRule ^login/?$ login.php [NC,L]
    RewriteRule ^register/?$ register.php [NC,L]
    RewriteRule ^recover/?$ recover.php [NC,L]
    RewriteRule ^people/?$ people.php [NC,L]
    RewriteRule ^people/([0-9]+)$ people.php?p=$1 [NC,L]
    RewriteRule ^messages/?$ messages.php [NC,L]
    RewriteRule ^friends/?$ friends.php [NC,L]
    RewriteRule ^requests/?$ friends.php?tab=requests [NC,L]
    RewriteRule ^requests/([0-9]+)/accept$ friends.php?tab=requests&accept=true&id=$1 [NC,L]
    RewriteRule ^requests/([0-9]+)/decline$ friends.php?tab=requests&decline=true&id=$1 [NC,L]
    RewriteRule ^user/([0-9]+)$ profile.php?id=$1 [NC,L]
    RewriteRule ^user/([0-9]+)/photos$ profile.php?id=$1&tab=photos [NC,L]
    RewriteRule ^user/([0-9]+)/friends$ profile.php?id=$1&tab=friends [NC,L]
    RewriteRule ^user/([0-9]+)/about$ profile.php?id=$1&tab=about [NC,L]
    RewriteRule ^user/([0-9]+)/photo_upload$ profile.php?id=$1&photo_upload=true [NC,L]
    RewriteRule ^me/customize$ customize_profile.php [NC,L]
    RewriteRule ^messages/([0-9]+)$ messages.php?id=$1 [NC,L]
    RewriteRule ^message/([0-9]+)$ messages/$1 [NC,L]
    RewriteRule ^messages/([0-9]+)/delete$ messages.php?id=$1&delete=true [NC,L]
    RewriteRule ^messages/([0-9]+)/unblock$ messages.php?id=$1&unblock_user=true [NC,L]
    RewriteRule ^page/([0-9]+)$ page.php?id=$1 [NC,L]
    RewriteRule ^settings/?$ settings.php [NC,L]
    RewriteRule ^likes/?$ likes.php [NC,L]
    RewriteRule ^visitors/?$ visitors.php [NC,L]
    RewriteRule quickmatch/?$ quickmatch.php [NC,L]
    RewriteRule ^upgrades/?$ upgrades.php [NC,L]

    Grazie in anticipo

  9. #9
    darbula non è connesso AlterGuru 2500
    Data registrazione
    24-04-2011
    Messaggi
    2,895

    Predefinito

    Definisci non ti funziona,descrivendo se ti viene fornito qualche errore e su quale posizione hai l'htaccess..REQUEST_FILENAME -f qui recupera solo il percorso parziale (%{REQUEST_URI}) e se è un file (-f). Descrivi cosa vuoi fare. Ad esempio
    Codice:
    RewriteRule ^login/?$ login.php [NC,L]
    Questa ri-scrittura sta ad indicare se è una cartella o no reindirizza sempre. (cioè nel secondo caso tu digiti http://www.sito.it/login.php è crei un loop di reindirizzamenti) Per due info qui http://forum.it.altervista.org/probl...ml#post1283507
    Ultima modifica di darbula : 10-03-2016 alle ore 23.54.19

Regole di scrittura

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