markh28 Posted September 6, 2024 Share Posted September 6, 2024 PS Version 8.1.7. This seems to be common, and I wish there was an easy answer for it by now. But my images don't show up in the front office when I have friendly URLs enabled. I turn off friendly URL's and they are back. Back office images are fine. I have spent hours reading threads, most of them much older versions of PS than mine. Nothing has worked. I have deleted and regenerated the htaccess file several times. Regenerated thumbnails, etc. On a similar note, why do the friendly URL's have the category id in them? I would think the url mysite.com/cooking would have much more SEO value than mysite.com/21-cooking. Its a bit annoying. I am almost ready to abandon a couple weeks worth of work and go back to wordpress. Link to comment Share on other sites More sharing options...
Prestashop Addict Posted September 6, 2024 Share Posted September 6, 2024 Hi, natively Prestashop url rewriting use the id for categories and products. This has no real disadvantage for seo. Did ou check image url to see the issue in path construction? Link to comment Share on other sites More sharing options...
markh28 Posted September 6, 2024 Author Share Posted September 6, 2024 When friendly URLs are on, this is the image url: (and the image does not show on the web page and I can not go directly to the image in my browser using this url) https://h2tackleoutdoors.com/28-home_default/h2-original-seasoning-12-oz.jpg When they are off, this is the url: (and the image shows on the web page and I can go directly to the image in my browser using this url) https://h2tackleoutdoors.com/img/p/2/8/28-home_default.jpg Link to comment Share on other sites More sharing options...
Prestashop Addict Posted September 6, 2024 Share Posted September 6, 2024 It looks like an issue on rules, can you publish your .htaccess Link to comment Share on other sites More sharing options...
markh28 Posted September 6, 2024 Author Share Posted September 6, 2024 (edited) # ~~start~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again # .htaccess automaticaly generated by PrestaShop e-commerce open-source solution # https://www.prestashop.com - https://www.prestashop.com/forums <IfModule mod_security.c> SecFilterEngine Off SecFilterScanPOST Off </IfModule> <IfModule mod_rewrite.c> <IfModule mod_env.c> SetEnv HTTP_MOD_REWRITE On </IfModule> # Disable Multiviews Options -Multiviews RewriteEngine on #Domain: h2tackleoutdoors.com RewriteRule . - [E=REWRITEBASE:/] RewriteRule ^api(?:/(.*))?$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L] RewriteRule ^upload/.+$ %{ENV:REWRITEBASE}index.php [QSA,L] # Images RewriteCond %{HTTP_HOST} ^h2tackleoutdoors.com$ RewriteRule ^(([\d])(?:\-[\w-]*)?)/.+(\.(?:jpe?g|webp|png|avif))$ %{ENV:REWRITEBASE}img/p/$2/$1$3 [L] RewriteCond %{HTTP_HOST} ^h2tackleoutdoors.com$ RewriteRule ^(([\d])([\d])(?:\-[\w-]*)?)/.+(\.(?:jpe?g|webp|png|avif))$ %{ENV:REWRITEBASE}img/p/$2/$3/$1$4 [L] RewriteCond %{HTTP_HOST} ^h2tackleoutdoors.com$ RewriteRule ^(([\d])([\d])([\d])(?:\-[\w-]*)?)/.+(\.(?:jpe?g|webp|png|avif))$ %{ENV:REWRITEBASE}img/p/$2/$3/$4/$1$5 [L] RewriteCond %{HTTP_HOST} ^h2tackleoutdoors.com$ RewriteRule ^(([\d])([\d])([\d])([\d])(?:\-[\w-]*)?)/.+(\.(?:jpe?g|webp|png|avif))$ %{ENV:REWRITEBASE}img/p/$2/$3/$4/$5/$1$6 [L] RewriteCond %{HTTP_HOST} ^h2tackleoutdoors.com$ RewriteRule ^(([\d])([\d])([\d])([\d])([\d])(?:\-[\w-]*)?)/.+(\.(?:jpe?g|webp|png|avif))$ %{ENV:REWRITEBASE}img/p/$2/$3/$4/$5/$6/$1$7 [L] RewriteCond %{HTTP_HOST} ^h2tackleoutdoors.com$ RewriteRule ^(([\d])([\d])([\d])([\d])([\d])([\d])(?:\-[\w-]*)?)/.+(\.(?:jpe?g|webp|png|avif))$ %{ENV:REWRITEBASE}img/p/$2/$3/$4/$5/$6/$7/$1$8 [L] RewriteCond %{HTTP_HOST} ^h2tackleoutdoors.com$ RewriteRule ^(([\d])([\d])([\d])([\d])([\d])([\d])([\d])(?:\-[\w-]*)?)/.+(\.(?:jpe?g|webp|png|avif))$ %{ENV:REWRITEBASE}img/p/$2/$3/$4/$5/$6/$7/$8/$1$9 [L] RewriteCond %{HTTP_HOST} ^h2tackleoutdoors.com$ RewriteRule ^c/([\d]+)(\-[\.*\w-]*)/.+(\.(?:jpe?g|webp|png|avif))$ %{ENV:REWRITEBASE}img/c/$1$2$3 [L] RewriteCond %{HTTP_HOST} ^h2tackleoutdoors.com$ RewriteRule ^c/([a-zA-Z_-]+)(-[\d]+)?/.+(\.(?:jpe?g|webp|png|avif))$ %{ENV:REWRITEBASE}img/c/$1$2$3 [L] # AlphaImageLoader for IE and fancybox RewriteRule ^images_ie/?([^/]+)\.(jpe?g|png|gif)$ %{ENV:REWRITEBASE}js/jquery/plugins/fancybox/images/$1.$2 [L] # Dispatcher RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^.*$ - [NC,L] RewriteRule ^.*$ %{ENV:REWRITEBASE}index.php [NC,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> <Files composer.lock> # Apache 2.2 <IfModule !mod_authz_core.c> Order deny,allow Deny from all </IfModule> # Apache 2.4 <IfModule mod_authz_core.c> Require all denied </IfModule> </Files> <IfModule mod_expires.c> ExpiresActive On AddType image/webp .webp ExpiresByType image/webp "access plus 1 month" ExpiresByType image/avif "access plus 1 month" ExpiresByType image/gif "access plus 1 month" ExpiresByType image/jpeg "access plus 1 month" ExpiresByType image/png "access plus 1 month" ExpiresByType text/css "access plus 1 week" ExpiresByType text/javascript "access plus 1 week" ExpiresByType application/javascript "access plus 1 week" ExpiresByType application/x-javascript "access plus 1 week" ExpiresByType image/x-icon "access plus 1 year" ExpiresByType image/svg+xml "access plus 1 year" ExpiresByType image/vnd.microsoft.icon "access plus 1 year" ExpiresByType application/font-woff "access plus 1 year" ExpiresByType application/x-font-woff "access plus 1 year" ExpiresByType font/woff2 "access plus 1 year" ExpiresByType application/vnd.ms-fontobject "access plus 1 year" ExpiresByType font/opentype "access plus 1 year" ExpiresByType font/ttf "access plus 1 year" ExpiresByType font/otf "access plus 1 year" ExpiresByType application/x-font-ttf "access plus 1 year" ExpiresByType application/x-font-otf "access plus 1 year" </IfModule> <IfModule mod_headers.c> Header unset Etag </IfModule> FileETag none <IfModule mod_deflate.c> <IfModule mod_filter.c> AddOutputFilterByType DEFLATE text/html text/css text/javascript application/javascript application/x-javascript font/ttf application/x-font-ttf font/otf application/x-font-otf font/opentype image/svg+xml </IfModule> </IfModule> #If rewrite mod isn't enabled ErrorDocument 404 /index.php?controller=404 # ~~end~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again Edited September 6, 2024 by markh28 did not have friendly url activated the first time (see edit history) Link to comment Share on other sites More sharing options...
Prestashop Addict Posted September 6, 2024 Share Posted September 6, 2024 Try to remove numbers in product title (ie: 12 in your site) Link to comment Share on other sites More sharing options...
markh28 Posted September 6, 2024 Author Share Posted September 6, 2024 Tried that on an item. Did not fix the issue. I cant take numbers out of my product titles anyway, because they are a very descriptive part of the titles. Link to comment Share on other sites More sharing options...
Vincent_z Posted January 19 Share Posted January 19 Hi guys, did you fix it or any progress? I encountered the same issue. Link to comment Share on other sites More sharing options...
kitchen007 Posted February 5 Share Posted February 5 any update on this.. i am facing same problem Link to comment Share on other sites More sharing options...
Nickz Posted February 5 Share Posted February 5 On 2/5/2025 at 1:38 PM, kitchen007 said: any update on this.. i am facing same problem Expand Having a similar issue or the same problem with the same set up? Theme version, Presta Version and a little history makes a difference here. Link to comment Share on other sites More sharing options...
kitchen007 Posted February 27 Share Posted February 27 Having a similar issue... Link to comment Share on other sites More sharing options...
Knowband Plugins Posted February 27 Share Posted February 27 Have you tried to regenerate the .htaccess file? Link to comment Share on other sites More sharing options...
gabriel81mi Posted March 26 Share Posted March 26 You are most likely not displaying the images because your website is hosted on an nginx server that does not support htaccess files. The solution is to switch to an apache server or configure the nginx.conf file Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now