首页 > 解决方案 > 迁移后的 Xenforo 图像和附件 URL

问题描述

我最近将 Xenforo 论坛从 Amazon AWS 迁移到了 Linode。我还移动了所有附件和图像,并将它们保存在我的服务器路径 /var/www/html/data/attachments 中。当我在新服务器上查看论坛图片时,它们的 URL 仍然指向 AWS S3。我希望他们指向新域上的附件文件夹,即http://my-new-domain/var/www/html/data/attachmments

标签: xenforo

解决方案


从 Xenforo手册中关于 config.php 选项:

If you want to change the location that XenForo stores the data and scripts it keeps in files, such as avatars, attachments and javascript files, you can do so by altering these settings.

$config['externalDataPath'] = 'data';
$config['externalDataUrl'] = 'data';
$config['internalDataPath'] = 'internal_data';

internalDataPath
Defines the path to the 'internal_data' directory, which contains files that are not served directly to web browser clients, such as attachments.

您需要检查 config.php 并查看是否设置了任何非标准选项,例如 externalDataUrl 或 externalDataPath。

检查您的重定向,并确保您在过去没有进行过您忘记的重定向


推荐阅读