Grazie al link postato da Roberto, ho ottenuto, con Drupal 5, le “clean Url” anche su siti ospitati su hosting aruba, dopo gli svariati tentativi di moduli e di .htaccess di esempio andati a male

Grazie Roby!

#
# Apache/PHP/site settings:
#

# Protect files and directories from prying eyes:
<Files ~ "(.(conf|inc|module|pl|sh|sql|theme|engine|xtmpl)|Entries|Repositories|Root|scripts|updates)$">
order deny,allow
deny from all
</Files># 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 default handler to index.php:
# non supportato da aruba
#DirectoryIndex index.php

# Overload PHP variables:
<IfModule mod_php4.c>
# If you are using Apache 2, you have to use <IfModule sapi_apache2.c>
# instead of <IfModule mod_php4.c>.
php_value register_globals        0
php_value track_vars              1
php_value short_open_tag          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
</IfModule>

# Various rewrite rules
<IfModule mod_rewrite.c>
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 form 'node.php?id=x':
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{QUERY_STRING} ^id=([^&]+)$
#RewriteRule node.php index.php?q=node/view/%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]
</IfModule>

# $Id: .htaccess,v 1.58 2004/10/09 20:41:49 dries Exp $

In prima battuta le sperimenterò su AttivAzione.org, per il merge di tutti i motori esistenti (wordpress per gli articoli e punbb per il forum) su un cms drupal appunto.
A seguire, sarà il turno del sito del LUGPiacenza.

Comments

comments

Powered by Facebook Comments