Now redirects are "permanent" redirects(code 301)
the upgrade script should regenerate previously created redirects References: 1165
This commit is contained in:
parent
136ae243e8
commit
9a71472424
|
@ -177,7 +177,7 @@ add_host() {
|
||||||
value=`echo $value | sed -e 's#\([^/:]*://\)\?\([^/]*\)/*\(.*\)#\1\2/\3#'`
|
value=`echo $value | sed -e 's#\([^/:]*://\)\?\([^/]*\)/*\(.*\)#\1\2/\3#'`
|
||||||
|
|
||||||
(echo "RewriteEngine on"
|
(echo "RewriteEngine on"
|
||||||
echo "RewriteRule (.*) ${value}\$1 [R,L]"
|
echo "RewriteRule (.*) ${value}\$1 [R=permanent,L]"
|
||||||
) > "$htaccess_directory/.htaccess"
|
) > "$htaccess_directory/.htaccess"
|
||||||
ln -snf "$htaccess_directory" "$vhost_directory"
|
ln -snf "$htaccess_directory" "$vhost_directory"
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in New Issue