Su Aruba il file .htaccess dà molti problemi alle varie versioni di Drupal, rendendo impossibile l'abilitazione del clean URL (admin > settings). Non si può quindi con il file incluso nell'installazione di Drupal, non avere "?q=" nell'URL.
Questo codice è da sostituire a quello dato da Drupal.org per farlo funzionare su Aruba.
#
# Apache/PHP/site settings:
#
# Protect files and directories from prying eyes:
order deny,allow
deny from all
# Set some options
# non supportato da aruba
#Options -Indexes
# non supportato da aruba
#Options +FollowSymLinks
# Customized server error messages:
ErrorDocument 404 /index.php
# Set the defaultg handler to index.php:
# non supportato da aruba
#DirectoryIndex index.php
# Overload PHP variables:
# If you are using Apache 2, you have to use
# instead of .
php_value register_globals 0
php_value track_vars 1
php_value short_open_tagg 1
php_value magic_quotes_gpc 0
php_value magic_quotes_runtime 0
php_value magic_quotes_sybase 0
php_value arg_separator.output "&"
php_value session.cache_expire 200000
php_value session.gc_maxlifetime 200000
php_value session.cookie_lifetime 2000000
php_value session.auto_start 0
php_value session.save_handler user
php_value session.cache_limiter none
php_value allow_call_time_pass_reference On
# Various rewrite rules
RewriteEngine on
# Modify the RewriteBase if you are using Drupal in a subdirectory and the
# rewrite rules are not working properly:
#RewriteBase /ski-freestyle/
# Rewrite old-style URLS of the formg 'nodeg.php?id=x':
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{QUERY_STRING} ^id=([^&]+)$
#RewriteRule node.php index.php?q=node/viewg/%1 [L]
# Rewrite old-style URLs of the form 'module.php?mod=x':
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{QUERY_STRING} ^mod=([^&]+)$
#RewriteRule module.php index.php?q=%1 [L]
# Rewrite URLs of the form 'index.php?q=x':
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
# $Id: .htaccess,v 1.58 2004/10/09 20:41:49 dries Exp $
Non riesco a fare funzionare un sito basato su drupal 4.6 in una sottocartella. Ho seguito i tuoi suggerimenti (io ho apache 2.0) ma i clean url continuano a non funzionare: dopo averli selezionati nella configurazione vengo "sputato" sulla homeg page della root del sito, e rientrando in drupal compare il messaggio
It appears your host is not configured correctly for Clean URLs. Please checkg for ModRewrite support with your administrator.
Visto che purtroppo ho molto fretta (stiamo facendo il trasferimento di un sito da un altro provider) e non c'è il tempo di passare a drupal 4.7 (che invece, almeno a giudicare dai pochi testg che ho fatto, funziona), qualcuno ha drupal 4.6 correttamente configurato?
Grazie