Another trick in the wall: .htaccess and sites/all/default/files access

Another trick found in a fresh Drupal migration from a local environment to a service provider:
I used Drupal 7 for the first time but i think that it’s a problem that touches also Drupal 6.

I used a module embedded in the Drupal installation called slider, that use Jquery for a slideshow in a header on the front page.
It load some images that slides every 10 seconds. The default path of the images is sites/all/default/files directory that Drupal uses for the public files.
In my first attempt i moved the site to the hosted location, i changed some directives in the root .htaccess but i ever minded that i must change also the .htaccess located in this directory.
This file is created by Drupal at install time and every time that it doesn’t find this file.
For my purposes i must change the file that has these directives:
SetHandler Drupal_Security_Do_Not_Remove_See_SA_2006_006
Options None
Options +FollowSymLinks


SetHandler Drupal_Security_Do_Not_Remove_See_SA_2006_006
#Options None
#Options +FollowSymLinks

After this everything worked fine.

For later uses i link some sites that i read in this research:


~ di diegotech su maggio 4, 2011.


Inserisci i tuoi dati qui sotto o clicca su un'icona per effettuare l'accesso:


Stai commentando usando il tuo account Chiudi sessione /  Modifica )

Google+ photo

Stai commentando usando il tuo account Google+. Chiudi sessione /  Modifica )

Foto Twitter

Stai commentando usando il tuo account Twitter. Chiudi sessione /  Modifica )

Foto di Facebook

Stai commentando usando il tuo account Facebook. Chiudi sessione /  Modifica )


Connessione a %s...

%d blogger hanno fatto clic su Mi Piace per questo: