【发布时间】:2012-05-29 11:14:50
【问题描述】:
我将我的 magento 存储复制到我的本地 xampp 服务器。现在没有显示使用相对 url 引用的图像(例如按钮)。
在phtml文件中,这些图片是通过
<img src=/skin/default/default/images/button.jpg>
当我给他们一个绝对网址时
<img src=http://localhost/magento-test/skin/default/default/images/button.jpg>
它有效。我尝试使用
修改我的本地 .htaccessRewriteBase /magento-test/
和
RewriteBase /
我还在后端更改了禁用和可结束的 URL 重写。我也有
http://localhost/magento-test/
作为我在后端的基本网址。
但是图像仍然没有显示在我的本地前端。 有什么建议吗?
【问题讨论】:
标签: .htaccess magento url-rewriting relative-path base-url