summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--application/controllers/ResourceController.php4
-rw-r--r--public/.htaccess1
2 files changed, 3 insertions, 2 deletions
diff --git a/application/controllers/ResourceController.php b/application/controllers/ResourceController.php
index 91cd290..2c7f42e 100644
--- a/application/controllers/ResourceController.php
+++ b/application/controllers/ResourceController.php
@@ -257,9 +257,9 @@ class ResourceController extends Zend_Controller_Action
$kcl = $bootosmapper->find($bme->getBootosID())->getDefaultkcl();
if($bme->getKcl() && $kcl != null){
- $result = $kcl . " alpha=" . $this->_request->getParam('alpha') . " file=http://".$_SERVER['HTTP_HOST']."/resource/getconfig/alpha/".$this->_request->getParam('alpha')."/file/default.tgz ".$bme->getKclappend();
+ $result = $kcl . " alpha=" . $this->_request->getParam('alpha') . " file=http://".$_SERVER['HTTP_HOST']."/c/".$this->_request->getParam('alpha')."/default.tgz ".$bme->getKclappend();
}else{
- $result = "alpha=" . $this->_request->getParam('alpha') . " file=http://".$_SERVER['HTTP_HOST']."/resource/getconfig/alpha/".$this->_request->getParam('alpha')."/file/default.tgz ".$bme->getKclappend();
+ $result = "alpha=" . $this->_request->getParam('alpha') . " file=http://".$_SERVER['HTTP_HOST']."/c/".$this->_request->getParam('alpha')."/default.tgz ".$bme->getKclappend();
}
header("Content-Length: ".(strlen($result)));
diff --git a/public/.htaccess b/public/.htaccess
index f2c21c8..a0f45c7 100644
--- a/public/.htaccess
+++ b/public/.htaccess
@@ -5,6 +5,7 @@ Allow from 192.168.0.0/255.255.0.0
RewriteEngine On
+RewriteRule ^c/(.*)/default.tgz$ /resource/getconfig/alpha/$1/file/default.tgz [L,R=301]
RewriteRule ^dev(.*)$ /user [L,R=301]