Silverstripe su Altervista: mod_rewrite
Ciao a tutti.
Sto installando Silverstripe sul mio sito di altervista.
Il problema è che non so come attivare mod_rewrite.
Ho già visto in altre discussioni come modificare il file .htaccess, ma, siccome non sono molto esperto di informatica, mi esce tutto sbagliato.
Ho creato questo sito "provvisorio".
Il sito è questo: http://ftp.joshuaprovvisorio.altervi...pe/install.php
Come potete capire, tutti i file di sistema di silverstripe sono in una sottocartella "silverstripe".
Nel file .htaccess in "/" ho solo abilitato php5.3 e, infatti, si legge questo:
# # av:php5-engine
AddHandler av-php53 .php
(ma questo me la fatto in automatico altervista quando ho abilitato php5.3).
------------------------------------------------------------------------------------------------------------------
Non so se serve, comunque, anche nella sottocartella di silverstripe c'è un file .htaccess in cui si legge:
### SILVERSTRIPE START ###
<Files *.ss>
Order deny,allow
Deny from all
Allow from 127.0.0.1
</Files>
<Files web.config>
Order deny,allow
Deny from all
</Files>
# This denies access to all yml files, since developers might include sensitive
# information in them. See the docs for work-arounds to serve some yaml files
<Files ~ "\.ya?ml$">
Order allow,deny
Deny from all
</Files>
ErrorDocument 404 /assets/error-404.html
ErrorDocument 500 /assets/error-500.html
<IfModule mod_alias.c>
RedirectMatch 403 /silverstripe-cache(/|$)
RedirectMatch 403 /vendor(/|$)
RedirectMatch 403 /composer\.(json|lock)
</IfModule>
<IfModule mod_rewrite.c>
SetEnv HTTP_MOD_REWRITE On
RewriteEngine On
RewriteCond %{REQUEST_URI} ^(.*)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !\.php$
RewriteRule .* framework/main.php?url=%1 [QSA]
RewriteCond %{REQUEST_URI} ^(.*)/framework/main.php$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule . %1/install.php? [R,L]
</IfModule>
### SILVERSTRIPE END ###