From 0af97921c83f6a4ae189a94940cd2f8c0c550684 Mon Sep 17 00:00:00 2001 From: Simon Date: Wed, 20 Apr 2011 18:29:08 +0200 Subject: Url für Config gekürzt --- application/controllers/ResourceController.php | 4 ++-- public/.htaccess | 1 + 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] -- cgit v1.2.3-55-g7522