Ciao a tutti!!Allora, vi spiego per filo e per segno cosa non va!!
Sono con ubuntu, nel localhost ho questa pagina:
tramite htaccess voglio farla diventarecodice:http://localhost/csm_V2/gestione/modulo/pagine.htm
Così mi creo il mio bel file .htaccess inserendocodice:http://localhost/csm_V2/gestione/pagine.html
Quindi vado nella cartella apache2/sites-avaible e paro il file default e setto i parametri come ho letto che devono essere settaticodice:RewriteEngine on RewriteRule ^([^/]*)\.html$ index.php?modulo=$1 [L]
Riavvio apache da terminale.... vado sulla paginacodice:<VirtualHost *:80> ServerAdmin webmaster@localhost DocumentRoot /var/www <Directory /> Options FollowSymLinks AllowOverride All </Directory> <Directory /var/www/> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all </Directory> ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ <Directory "/usr/lib/cgi-bin"> AllowOverride All Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch Order allow,deny Allow from all </Directory> ErrorLog ${APACHE_LOG_DIR}/error.log # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. LogLevel warn CustomLog ${APACHE_LOG_DIR}/access.log combined Alias /doc/ "/usr/share/doc/" <Directory "/usr/share/doc/"> Options Indexes MultiViews FollowSymLinks AllowOverride All Order deny,allow Deny from all Allow from 127.0.0.0/255.0.0.0 ::1/128 </Directory> </VirtualHost>
e mi riporta l'errore 403 FORBIDDEN con il relativo messaggiocodice:http://localhost/csm_V2/gestione/pagine.html
Ora...vorrei risolvere il problea htaccess una volta per tutte..O IO O LUI!!! ho cercato di essere il più dettagliato possibile..spero riusciate a risolvere il mio problema...grazie in anticopocodice:You don't have permission to access /csm_V2/gestione/pagine.html on this server.

Rispondi quotando
