Visualizzazione dei risultati da 1 a 2 su 2
  1. #1
    Utente di HTML.it L'avatar di henry78
    Registrato dal
    May 2001
    Messaggi
    1,264

    problema a usare .htaccess

    Sia sul mio hosting, sia in locale, se provo a usare un file .htaccess con la seguente semplicissima regola:

    RewriteEngine On
    RewriteRule ^notizie/([^/]+).html notizie.php?id=$1 [L]

    mi viene generato il seguente errore:

    Internal Server Error
    The server encountered an internal error or misconfiguration and was unable to complete your request.
    Please contact the server administrator, admin@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

    More information about this error may be available in the server error log.

    come mai?

  2. #2
    Utente di HTML.it L'avatar di henry78
    Registrato dal
    May 2001
    Messaggi
    1,264
    Ho risolto da solo!

    ho aggiunto:

    LoadModule rewrite_module modules/mod_rewrite.so
    AddModule mod_rewrite.c

    nel file httpd.conf

    e.. tutto va bene!


Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.