From a5109325363b6fabd07a16d2a6aa487ac8fd5653 Mon Sep 17 00:00:00 2001 From: alvaro <alvaro@alia.(none)> Date: Fri, 12 Oct 2012 14:16:02 -0700 Subject: [PATCH] Adding IfModule to .htaccess --- install.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 2f3307d4..5d8e4b7a 100755 --- a/install.sh +++ b/install.sh @@ -113,12 +113,15 @@ echo "Created new configuration file: $settings_file" echo "" echo "WARNING: Copying $root_htaccess as .htaccess in parent directory" echo "" -echo "RewriteEngine on" > $parent_htaccess + +echo "<IfModule mod_rewrite.c>" > $parent_htaccess +echo "RewriteEngine on" >> $parent_htaccess echo >> $parent_htaccess newBase=`echo $basedir|sed -e "s|https\{0,1\}://[^\/]*||g"` echo "RewriteBase $newBase" >> $parent_htaccess cat $root_htaccess >> $parent_htaccess echo "RewriteRule ^(.+)\$ $1/index.php?q=\$1 [L]" >> $parent_htaccess +echo "</IfModule>" >> $parent_htaccess mkdir cache cp -r doc/examples/originalComponents components mkdir -p components/uris -- GitLab