Skip to content

Commit bc2c3ea

Browse files
committed
Fixed: FS#1129 - Domain redirection
1 parent a59ad3a commit bc2c3ea

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

server/plugins-available/apache2_plugin.inc.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -582,9 +582,11 @@ function update($event_name,$data) {
582582
$rewrite_rules = array();
583583
if($data["new"]["redirect_type"] != '') {
584584
if(substr($data["new"]["redirect_path"],-1) != '/') $data["new"]["redirect_path"] .= '/';
585+
/* Disabled path extension
585586
if($data["new"]["redirect_type"] == 'no' && substr($data["new"]["redirect_path"],0,4) != 'http') {
586587
$data["new"]["redirect_path"] = $data["new"]["document_root"]."/web".realpath($data["new"]["redirect_path"]).'/';
587588
}
589+
*/
588590

589591
$rewrite_rules[] = array( 'rewrite_domain' => $data["new"]["domain"],
590592
'rewrite_type' => ($data["new"]["redirect_type"] == 'no')?'':'['.$data["new"]["redirect_type"].']',
@@ -633,9 +635,11 @@ function update($event_name,$data) {
633635
// Rewriting
634636
if($alias["redirect_type"] != '') {
635637
if(substr($data["new"]["redirect_path"],-1) != '/') $data["new"]["redirect_path"] .= '/';
638+
/* Disabled the path extension
636639
if($data["new"]["redirect_type"] == 'no' && substr($data["new"]["redirect_path"],0,4) != 'http') {
637640
$data["new"]["redirect_path"] = $data["new"]["document_root"]."/web".realpath($data["new"]["redirect_path"]).'/';
638641
}
642+
*/
639643
$rewrite_rules[] = array( 'rewrite_domain' => $alias["domain"],
640644
'rewrite_type' => ($alias["redirect_type"] == 'no')?'':'['.$alias["redirect_type"].']',
641645
'rewrite_target' => $alias["redirect_path"]);

0 commit comments

Comments
 (0)