new.sh: fix .htaccess to allow access to "/web" without the trailing slash
[drupal-init-tools.git] / libexec / new.sh
index 385c141..a73b894 100755 (executable)
@@ -120,7 +120,7 @@ echo "Uncomment and customize the values in the bootstrap.conf file."
 # Add some basic access control to protect sensitive files like bootstrap.conf
 cat > .htaccess <<EOF
 Options -Indexes
-SetEnvIf Request_URI "/web/.*" access_granted
+SetEnvIf Request_URI "/web(/.*)?$" access_granted
 Order allow,deny
 Allow from env=access_granted
 EOF