From 460e7293a74d6cfe849b74c47a47b3e0f0d50984 Mon Sep 17 00:00:00 2001 From: rMalie Date: Wed, 6 Jul 2011 14:35:19 +0000 Subject: [PATCH] // Generate .htaccess in adminShopUrl --- admin-dev/tabs/AdminShopUrl.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/admin-dev/tabs/AdminShopUrl.php b/admin-dev/tabs/AdminShopUrl.php index a28ec1bdf..ab5c8cdab 100755 --- a/admin-dev/tabs/AdminShopUrl.php +++ b/admin-dev/tabs/AdminShopUrl.php @@ -63,7 +63,10 @@ class AdminShopUrl extends AdminTab } if ($object->canAddThisUrl(Tools::getValue('domain'), Tools::getValue('domain_ssl'), Tools::getValue('uri'))) $this->_errors[] = Tools::displayError('A shop url that use this domain and uri already exists'); + + Tools::generateHtaccess(dirname(__FILE__).'/../../.htaccess', Configuration::get('PS_REWRITING_SETTINGS'), Configuration::get('PS_HTACCESS_CACHE_CONTROL'), Configuration::get('PS_HTACCESS_SPECIFIC')); } + if (Tools::isSubmit('submitOptions'.$this->table)) { $baseUrls = array();