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();