我保存在magento后图像无法正常工作

时间:2013-12-11 01:54:19

标签: image magento admin

我多年来一直在使用Magento ......我已经设置了300多种产品。今天,无处不在,我无法为我的新产品添加图像。我可以很好地设置其他所有内容,但是当我上传图片并保存时,它不会显示而且看起来很破碎。

我已经清除了Magento和我的浏览器的缓存,但图片仍未显示。

非常感谢任何帮助。

谢谢。

1 个答案:

答案 0 :(得分:0)

我错过了媒体文件夹中的.htaccess文件。重新创建后,一切都恢复正常。以下是该文件的内容。

Options All -Indexes
<IfModule mod_php5.c>
php_flag engine 0
</IfModule>

AddHandler cgi-script .php .pl .py .jsp .asp .htm .shtml .sh .cgi
Options -ExecCGI

<IfModule mod_rewrite.c>

############################################
## enable rewrites

Options +FollowSymLinks
RewriteEngine on

############################################
## never rewrite for existing files
RewriteCond %{REQUEST_FILENAME} !-f

############################################
## rewrite everything else to index.php

RewriteRule .* ../get.php [L]
</IfModule>