Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
marcus-lodspeakr
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
uib-ub
Spesialsamlingene
marcus-lodspeakr
Commits
a5109325
Commit
a5109325
authored
12 years ago
by
alvaro
Browse files
Options
Downloads
Patches
Plain Diff
Adding IfModule to .htaccess
parent
8705d183
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
install.sh
+4
-1
4 additions, 1 deletion
install.sh
with
4 additions
and
1 deletion
install.sh
+
4
−
1
View file @
a5109325
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment