Skip to content
Snippets Groups Projects
Commit a5109325 authored by alvaro's avatar alvaro
Browse files

Adding IfModule to .htaccess

parent 8705d183
No related branches found
No related tags found
No related merge requests found
...@@ -113,12 +113,15 @@ echo "Created new configuration file: $settings_file" ...@@ -113,12 +113,15 @@ echo "Created new configuration file: $settings_file"
echo "" echo ""
echo "WARNING: Copying $root_htaccess as .htaccess in parent directory" echo "WARNING: Copying $root_htaccess as .htaccess in parent directory"
echo "" echo ""
echo "RewriteEngine on" > $parent_htaccess
echo "<IfModule mod_rewrite.c>" > $parent_htaccess
echo "RewriteEngine on" >> $parent_htaccess
echo >> $parent_htaccess echo >> $parent_htaccess
newBase=`echo $basedir|sed -e "s|https\{0,1\}://[^\/]*||g"` newBase=`echo $basedir|sed -e "s|https\{0,1\}://[^\/]*||g"`
echo "RewriteBase $newBase" >> $parent_htaccess echo "RewriteBase $newBase" >> $parent_htaccess
cat $root_htaccess >> $parent_htaccess cat $root_htaccess >> $parent_htaccess
echo "RewriteRule ^(.+)\$ $1/index.php?q=\$1 [L]" >> $parent_htaccess echo "RewriteRule ^(.+)\$ $1/index.php?q=\$1 [L]" >> $parent_htaccess
echo "</IfModule>" >> $parent_htaccess
mkdir cache mkdir cache
cp -r doc/examples/originalComponents components cp -r doc/examples/originalComponents components
mkdir -p components/uris mkdir -p components/uris
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment