[RISOLTO] Rewrite root directory apache
Inviato: dom 13 giu 2010, 3:15
Ciao stavo cercando tramite una RewriteRule in .htaccess di indirizzare la / del web server su un altra directory così:
RewriteRule / contenuti/index/index.php [L]
Ma non funziona qualcuno sa come si fà?
Ho trovato questo sul sito di apache:
http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html
Grazie.
RewriteRule / contenuti/index/index.php [L]
Ma non funziona qualcuno sa come si fà?
Ho trovato questo sul sito di apache:
http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html
Ma non ho bene capito come applicarla.'last|L' (last rule)
Stop the rewriting process here and don't apply any more rewriting rules. This corresponds to the Perl last command or the break command from the C language. Use this flag to prevent the currently rewritten URL from being rewritten further by following rules. For example, use it to rewrite the root-path URL ('/') to a real one, e.g., '/e/www/'.
Grazie.