change rule in .htaccess and fix link for asset
This commit is contained in:
@@ -41,7 +41,7 @@ class Template extends Smarty
|
||||
if (! is_dir($cache_dir)) @mkdir($cache_dir, 0777, true);
|
||||
|
||||
$web_root = THELIA_WEB_DIR;
|
||||
$asset_dir_from_web_root = 'assets/admin/default';
|
||||
$asset_dir_from_web_root = '/assets/admin/default';
|
||||
|
||||
$this->asset_manager = new AssetsManager($web_root, $asset_dir_from_web_root);
|
||||
|
||||
|
||||
@@ -5,5 +5,8 @@ AddDefaultCharset UTF-8
|
||||
<IfModule mod_rewrite.c>
|
||||
RewriteEngine on
|
||||
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
|
||||
RewriteRule ^admin(/.*)?$ index_dev.php/admin/$1 [L,QSA]
|
||||
</IfModule>
|
||||
Reference in New Issue
Block a user