- Автор темы
- #1
Версия ps 1.7.4.2
При переносе с локального компа на сервер пропало отображение картинок.
Вот как было на локальном:
Вот как стало на сервере:
Видно, что происходит замена путей у картинок с src="Для просмотра ссылки Войдиили Зарегистрируйся" на src="/themes/warehouse/assets/img/blank.png".
Я пробовал перегенерировать .htaccess и картинки - но без результатов.
Вот htaccess с локального
и вот с сервера.
Что еще может быть?
При переносе с локального компа на сервер пропало отображение картинок.
Вот как было на локальном:
Код:
<div class="thumbnail-container">
<a href="http://proj055.tt/varezhki/38-199-product.html#/96-razmer-xs_3_4_let/197-cvet-chernyj_oksford" class="thumbnail product-thumbnail">
<img data-original="http://proj055.tt/381-home_default/product.jpg" src="http://proj055.tt/381-home_default/product.jpg" alt="Варежки "БЕСТ"" data-full-size-image-url="http://proj055.tt/381-thickbox_default/product.jpg" width="380" height="450" class="img-fluid js-lazy-product-image product-thumbnail-first initial loaded" data-was-processed="true">
<img src="http://proj055.tt/396-home_default/product.jpg" data-original="http://proj055.tt/396-home_default/product.jpg" width="380" height="450" alt="Варежки "БЕСТ" 2" class="img-fluid js-lazy-product-image product-thumbnail-second initial loaded" data-was-processed="true">
</a>
<ul class="product-flags">
<li class="product-flag on-sale">В продаже!
</li>
</ul>
<div class="product-functional-buttons product-functional-buttons-bottom">
<div class="product-functional-buttons-links">
<!-- begin module:iqitwishlist/views/templates/hook/product-miniature.tpl -->
<!-- begin G:\domains\proj055.tt/modules/iqitwishlist/views/templates/hook/product-miniature.tpl -->
<a href="#" class="btn-iqitwishlist-add js-iqitwishlist-add" data-id-product="38" data-id-product-attribute="199" data-url="//proj055.tt/module/iqitwishlist/actions" data-toggle="tooltip" title="" data-original-title="Добавить в избранное">
<i class="fa fa-heart-o not-added" aria-hidden="true"></i> <i class="fa fa-heart added" aria-hidden="true"></i>
</a>
<!-- end G:\domains\proj055.tt/modules/iqitwishlist/views/templates/hook/product-miniature.tpl -->
<!-- end module:iqitwishlist/views/templates/hook/product-miniature.tpl -->
<!-- begin module:iqitcompare/views/templates/hook/product-miniature.tpl -->
<!-- begin G:\domains\proj055.tt/modules/iqitcompare/views/templates/hook/product-miniature.tpl -->
<a href="#" class="btn-iqitcompare-add js-iqitcompare-add" data-id-product="38" data-url="//proj055.tt/module/iqitcompare/actions" data-toggle="tooltip" title="" data-original-title="Сравнение">
<i class="fa fa-random" aria-hidden="true"></i>
</a>
<!-- end G:\domains\proj055.tt/modules/iqitcompare/views/templates/hook/product-miniature.tpl -->
<!-- end module:iqitcompare/views/templates/hook/product-miniature.tpl -->
<a class="js-quick-view-iqit" href="#" data-link-action="quickview" data-toggle="tooltip" title="" data-original-title="Быстрый просмотр">
<i class="fa fa-eye" aria-hidden="true"></i></a>
</div>
</div>
<div class="product-availability">
<span class="badge product-available mt-2">Available</span>
</div>
</div>
Вот как стало на сервере:
Код:
<div class="thumbnail-container">
<a href="https://shapki-flash.ru/159-622-product.html#/271-размер-s_6_8_лет/198-цвет-черная_мембрана" class="thumbnail product-thumbnail">
<img data-original="https://shapki-flash.ru/447-home_default/product.jpg" src="/themes/warehouse/assets/img/blank.png" alt="Перчатки ЗИМНИЕ" data-full-size-image-url="https://shapki-flash.ru/447-thickbox_default/product.jpg" width="380" height="450" class="img-fluid js-lazy-product-image product-thumbnail-first">
<img src="/themes/warehouse/assets/img/blank.png" data-original="https://shapki-flash.ru/446-home_default/product.jpg" width="380" height="450" alt="Перчатки ЗИМНИЕ 2" class="img-fluid js-lazy-product-image product-thumbnail-second">
</a>
<ul class="product-flags">
<li class="product-flag discount">Цена снижена
<span class="flag-discount-value"> /
-20,00 руб.
</span>
</li>
</ul>
<div class="product-functional-buttons product-functional-buttons-bottom">
<div class="product-functional-buttons-links">
<!-- begin module:iqitwishlist/views/templates/hook/product-miniature.tpl -->
<!-- begin /var/www/tispoint/data/www/shapki-flash.ru/modules/iqitwishlist/views/templates/hook/product-miniature.tpl -->
<a href="#" class="btn-iqitwishlist-add js-iqitwishlist-add" data-id-product="159" data-id-product-attribute="622" data-url="//shapki-flash.ru/module/iqitwishlist/actions" data-toggle="tooltip" title="Добавить в избранное">
<i class="fa fa-heart-o not-added" aria-hidden="true"></i> <i class="fa fa-heart added" aria-hidden="true"></i>
</a>
<!-- end /var/www/tispoint/data/www/shapki-flash.ru/modules/iqitwishlist/views/templates/hook/product-miniature.tpl -->
<!-- end module:iqitwishlist/views/templates/hook/product-miniature.tpl -->
<!-- begin module:iqitcompare/views/templates/hook/product-miniature.tpl -->
<!-- begin /var/www/tispoint/data/www/shapki-flash.ru/modules/iqitcompare/views/templates/hook/product-miniature.tpl -->
<a href="#" class="btn-iqitcompare-add js-iqitcompare-add" data-id-product="159" data-url="//shapki-flash.ru/module/iqitcompare/actions" data-toggle="tooltip" title="Сравнение">
<i class="fa fa-random" aria-hidden="true"></i>
</a>
<!-- end /var/www/tispoint/data/www/shapki-flash.ru/modules/iqitcompare/views/templates/hook/product-miniature.tpl -->
<!-- end module:iqitcompare/views/templates/hook/product-miniature.tpl -->
<a class="js-quick-view-iqit" href="#" data-link-action="quickview" data-toggle="tooltip" title="Быстрый просмотр">
<i class="fa fa-eye" aria-hidden="true"></i></a>
</div>
</div>
<div class="product-availability">
<span class="badge product-available mt-2">Available</span>
</div>
</div>
Видно, что происходит замена путей у картинок с src="Для просмотра ссылки Войди
Я пробовал перегенерировать .htaccess и картинки - но без результатов.
Вот htaccess с локального
Код:
# ~~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
# http://www.prestashop.com - http://www.prestashop.com/forums
<IfModule mod_rewrite.c>
<IfModule mod_env.c>
SetEnv HTTP_MOD_REWRITE On
</IfModule>
RewriteEngine on
#Domain: proj055.tt
RewriteRule . - [E=REWRITEBASE:/]
RewriteRule ^api$ api/ [L]
RewriteRule ^api/(.*)$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L]
# Images
RewriteCond %{HTTP_HOST} ^proj055.tt$
RewriteRule ^([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$1$2$3.jpg [L]
RewriteCond %{HTTP_HOST} ^proj055.tt$
RewriteRule ^([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$1$2$3$4.jpg [L]
RewriteCond %{HTTP_HOST} ^proj055.tt$
RewriteRule ^([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$1$2$3$4$5.jpg [L]
RewriteCond %{HTTP_HOST} ^proj055.tt$
RewriteRule ^([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$1$2$3$4$5$6.jpg [L]
RewriteCond %{HTTP_HOST} ^proj055.tt$
RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6$7.jpg [L]
RewriteCond %{HTTP_HOST} ^proj055.tt$
RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$1$2$3$4$5$6$7$8.jpg [L]
RewriteCond %{HTTP_HOST} ^proj055.tt$
RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8$9.jpg [L]
RewriteCond %{HTTP_HOST} ^proj055.tt$
RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$8/$1$2$3$4$5$6$7$8$9$10.jpg [L]
RewriteCond %{HTTP_HOST} ^proj055.tt$
RewriteRule ^c/([0-9]+)(\-[\.*_a-zA-Z0-9-]*)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2$3.jpg [L]
RewriteCond %{HTTP_HOST} ^proj055.tt$
RewriteRule ^c/([a-zA-Z_-]+)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2.jpg [L]
# AlphaImageLoader for IE and fancybox
RewriteRule ^images_ie/?([^/]+)\.(jpe?g|png|gif)$ 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>
#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
Код:
# ~~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
# http://www.prestashop.com - http://www.prestashop.com/forums
<IfModule mod_rewrite.c>
<IfModule mod_env.c>
SetEnv HTTP_MOD_REWRITE On
</IfModule>
RewriteEngine on
#Domain: shapki-flash.ru
RewriteRule . - [E=REWRITEBASE:/]
RewriteRule ^api$ api/ [L]
RewriteRule ^api/(.*)$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L]
# Images
RewriteCond %{HTTP_HOST} ^shapki-flash.ru$
RewriteRule ^([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$1$2$3.jpg [L]
RewriteCond %{HTTP_HOST} ^shapki-flash.ru$
RewriteRule ^([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$1$2$3$4.jpg [L]
RewriteCond %{HTTP_HOST} ^shapki-flash.ru$
RewriteRule ^([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$1$2$3$4$5.jpg [L]
RewriteCond %{HTTP_HOST} ^shapki-flash.ru$
RewriteRule ^([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$1$2$3$4$5$6.jpg [L]
RewriteCond %{HTTP_HOST} ^shapki-flash.ru$
RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6$7.jpg [L]
RewriteCond %{HTTP_HOST} ^shapki-flash.ru$
RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$1$2$3$4$5$6$7$8.jpg [L]
RewriteCond %{HTTP_HOST} ^shapki-flash.ru$
RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8$9.jpg [L]
RewriteCond %{HTTP_HOST} ^shapki-flash.ru$
RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$8/$1$2$3$4$5$6$7$8$9$10.jpg [L]
RewriteCond %{HTTP_HOST} ^shapki-flash.ru$
RewriteRule ^c/([0-9]+)(\-[\.*_a-zA-Z0-9-]*)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2$3.jpg [L]
RewriteCond %{HTTP_HOST} ^shapki-flash.ru$
RewriteRule ^c/([a-zA-Z_-]+)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2.jpg [L]
# AlphaImageLoader for IE and fancybox
RewriteRule ^images_ie/?([^/]+)\.(jpe?g|png|gif)$ 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>
#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
Последнее редактирование: