[-] BO: Fix the Htaccess rewriting generation when one shop has the rewriting enabled and the last one on the same domain not

This commit is contained in:
Rémi Gaillard
2013-04-03 14:43:17 +02:00
parent ca9abbf30a
commit 0a466d8c5d
+4 -2
View File
@@ -1598,8 +1598,10 @@ class ToolsCore
// Webservice
fwrite($write_fd, 'RewriteRule ^api/?(.*)$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L]'."\n\n");
$rewrite_settings = (int)Configuration::get('PS_REWRITING_SETTINGS', null, null, (int)$uri['id_shop']);
if (!$rewrite_settings)
$rewrite_settings = (int)Configuration::get('PS_REWRITING_SETTINGS', null, null, (int)$uri['id_shop']);
$domain_rewrite_cond = 'RewriteCond %{HTTP_HOST} ^'.$domain.'$'."\n";
// Rewrite virtual multishop uri
if ($uri['virtual'])