diff --git a/root.htaccess b/root.htaccess index d782c9601bc2287282286705ecd267916a2c11cc..bee4ad3061cadaba0f7d5949ca3135a587c3a120 100644 --- a/root.htaccess +++ b/root.htaccess @@ -5,4 +5,4 @@ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{SCRIPT_FILENAME} !.*/index.php$ -RewriteRule ^(.+)$ lodspeakr/index.php?q=$1 [L] + diff --git a/utils/install b/utils/install index 29935f55980c9422e4f73ee8790ad5cfe2373b9c..5d22ffa51e651c9e94aa507682cd0bf81cddaf10 100644 --- a/utils/install +++ b/utils/install @@ -3,6 +3,7 @@ # Author: Alvaro Graves (alvaro@graves.cl) # Modified by: Tim Lebo (lebot@rpi.edu) +lodspeakr_dir="lodspeakr" lodspeakr_repository="git://github.com/alangrafu/lodspeakr.git" home=`basename $lodspeakr_repository | sed 's/.git//'` @@ -18,6 +19,8 @@ if [ ! -e "$home" ]; then $GIT clone $lodspeakr_repository cd $home ./install.sh + cd .. + 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