Hello,
As I said in a previous post,
I am a new user of prestashop and am building my first website. I use the last version of prestashop and I work in localhost with MAMP.
My problem:
All my images work perfectly on my website BUTmy header in my CMS pages works only when I desactivate URL FRIENDLY. (See the photos)
What I already did:
- Regenerated thumbnails
- Deleted .htacess and activated again URL Friendly
- Changed the path for the images in /img/cms
PS: my headers are generated from my header.tpl where I added theses line:
{if $page.page_name == 'category'} <img src="themes/laber_outstock1/assets/img/ban_category.png"> {/if} {if $page.page_name =='cms'} <img src="themes/laber_outstock1/assets/img/ban_test.png"> {/if}
CMS PAGE WITH URL FRIENDLY ACTIVATED
CMS PAGE WITH URL FRIENDLY NOT ACTIVATED (So it works)
My .HTACCESS on the root looks like:
<IfModule mod_rewrite.c> <IfModule mod_env.c> SetEnv HTTP_MOD_REWRITE On </IfModule> RewriteEngine on #Domain: localhost:8888 RewriteRule . - [E=REWRITEBASE:/www/test/] RewriteRule ^api$ api/ [L] RewriteRule ^api/(.*)$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L] # AlphaImageLoader for IE and fancybox RewriteRule ^images_ie/?([^/]+)\.(jpe?g|png|gif)$ js/jquery/plugins/fancybox/images/$1.$2 [L] </IfModule> AddType application/vnd.ms-fontobject .eot AddType font/ttf .ttf AddType font/otf .otf AddType application/font-woff .woff AddType font/woff2 .woff2 <IfModule mod_headers.c> <FilesMatch "\.(ttf|ttc|otf|eot|woff|woff2|svg)$"> Header set Access-Control-Allow-Origin "*" </FilesMatch> </IfModule> #If rewrite mod isn't enabled ErrorDocument 404 /www/test/index.php?controller=404
Thank you for your help