diff --git a/install.sh b/install.sh
index 1c142215d16706d26998360ec2fe25c53d8ed8a0..7426c09651e43a0ebacd066f69fe4b3b6c27eb8f 100755
--- a/install.sh
+++ b/install.sh
@@ -120,13 +120,13 @@ mkdir cache
 echo
 echo "                                      *** ATTENTION ***"
 echo
-echo "LODSPeaKr needs the web server to have write permissions for lodspeakr/cache/ and lodspeakr/meta/."
+echo "LODSPeaKr needs the web server to have write permissions for $1/cache/ and $1/meta/."
 echo
 echo
 echo "Common ways of doing this:"
-echo " chown -R www-apache lodspeakr/cache lodspeakr/meta (find the name of the apache user in your system)"
-echo " chmod -R g+w lodspeakr/cache lodspeakr/meta (if you have a group in common with the apache user)"
-echo " chmod -R 777 lodspeakr/cache lodspeakr/meta (highly discouraged but useful to test when everything fails. It shouldn't be used in production sites)"
+echo " chown -R www-apache $1/cache $1/meta (find the name of the apache user in your system)"
+echo " chmod -R g+w $1/cache $1/meta (if you have a group in common with the apache user)"
+echo " chmod -R 777 $1/cache $1/meta (highly discouraged but useful to test when everything fails. It shouldn't be used in production sites)"
 echo
 echo "Please give the server write permissions. Otherwise, LODSPeaKr will not work."
 echo
diff --git a/utils/install b/utils/install
index 5d22ffa51e651c9e94aa507682cd0bf81cddaf10..48986405d658cafdcc69d54a29b41cdf9527d865 100644
--- a/utils/install
+++ b/utils/install
@@ -18,9 +18,9 @@ fi
 if [ ! -e "$home" ]; then
    $GIT clone $lodspeakr_repository
    cd $home
-   ./install.sh
+   ./install.sh $lodspeakr_dir
    cd ..
-   echo "RewriteRule ^(.+)$ $lodspeakr_dir/index.php?q=$1 [L]" >> .htaccess
+   echo "RewriteRule ^(.+)\$ $lodspeakr_dir/index.php?q=\$1 [L]" >> .htaccess
 else
    echo "There is already an existing directory called '$home'. Installation cancelled. Remove it first and try again."
 fi