图像路径的URL重写 - 多重存储 - .htaccess

问题描述 投票:0回答:1

我有两个商店(Opencart3 - Multistore),第二个商店的图像不是从第一个商店文件夹中获取的。

我想解决以下问题:(例如)http://www.pce-hungary.hu/image/替换此图像路径(RewriteCond %{REQUEST_FILENAME} - 我认为......)https://shop.eurochrom.hu/image/

我如何在.htaccess下修复此问题?

.htaccess opencart-3
1个回答
0
投票

必须添加这两行并且非常好:

RewriteCond%{REQUEST_URI} ^ / image /(.)$ RewriteRule ^(。)https://shop.eurochrom.hu/image/%1 [R = 302,NC]

最新问题
© www.soinside.com 2019 - 2024. All rights reserved.